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:
Jacques Le Roux
2022-06-30 11:27:59 +02:00
parent 4847919874
commit 29bdb0ed86
@@ -265,6 +265,11 @@ public class SecuredUpload {
return true;
}
break;
case "CSV":
if (isValidCsvFile(fileToCheck)) {
return true;
}
break;
default: // All
if (isValidTextFile(fileToCheck, true)