You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sample.name: f"Uploaded file exceeds the maximum allowed size in conf/web.conf. Sample size is: {size/float(1<<20):,.0f} Allowed size is: {web_cfg.general.max_sample_size/float(1<<20):,.0f}"
1623
+
}
1624
+
)
1625
+
continue
1626
+
1627
+
data=sample.read()
1628
+
1629
+
ifopt_filename:
1630
+
filename=opt_filename
1631
+
else:
1632
+
filename=sanitize_filename(sample.name)
1633
+
1634
+
# Moving sample from django temporary file to CAPE temporary storage for persistence, if configured by user.
1635
+
try:
1636
+
path=store_temp_file(data, filename)
1637
+
target_file=File(path)
1638
+
sha256=target_file.get_sha256()
1639
+
exceptOSError:
1619
1640
details["errors"].append(
1620
-
{
1621
-
sample.name: f"Uploaded file exceeds the maximum allowed size in conf/web.conf. Sample size is: {size/float(1<<20):,.0f} Allowed size is: {web_cfg.general.max_sample_size/float(1<<20):,.0f}"
1622
-
}
1641
+
{filename: "Temp folder from cuckoo.conf, disk is out of space. Clean some space before continue."}
1623
1642
)
1624
1643
continue
1625
1644
1626
-
data=sample.read()
1627
-
1628
-
ifopt_filename:
1629
-
filename=opt_filename
1630
-
else:
1631
-
filename=sanitize_filename(sample.name)
1632
-
1633
-
# Moving sample from django temporary file to CAPE temporary storage for persistence, if configured by user.
1634
-
try:
1635
-
path=store_temp_file(data, filename)
1636
-
target_file=File(path)
1637
-
sha256=target_file.get_sha256()
1638
-
exceptOSError:
1639
-
details["errors"].append(
1640
-
{filename: "Temp folder from cuckoo.conf, disk is out of space. Clean some space before continue."}
0 commit comments