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