Improved: Unable to upload a file through ecommerce (OFBIZ-12636)
Allows to check for only CSV files. This is not used OOTB in OFBiz. Thanks: Sachin for report and confirmation it's OK
This commit is contained in:
@@ -265,6 +265,11 @@ public class SecuredUpload {
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case "CSV":
|
||||
if (isValidCsvFile(fileToCheck)) {
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
|
||||
default: // All
|
||||
if (isValidTextFile(fileToCheck, true)
|
||||
|
||||
Reference in New Issue
Block a user