You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by beppe coniglio <ja...@gmail.com> on 2020/07/27 09:26:58 UTC

File Upload of File CSV doesn't work

Hi,
I create a new Project following guide lines in https://cwiki.apache.org/confluence/display/WW/File+Upload but when I try to upload csv file I obtain "Content-Type not allowed: ....application/vnd.ms-excel"
I download also a project by https://www.journaldev.com/2192/struts-2-file-upload-example , modify tag <param name="fileUpload.allowedTypes"> but also it doesn't work with Csv file.
Is a bug?
Thanks 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: File Upload of File CSV doesn't work

Posted by Lukasz Lenart <lu...@apache.org>.
pon., 27 lip 2020 o 13:03 beppe coniglio <ja...@gmail.com> napisał(a):
>
> Hi,
> I create a new Project following guide lines in https://cwiki.apache.org/confluence/display/WW/File+Upload but when I try to upload csv file I obtain "Content-Type not allowed: ....application/vnd.ms-excel"
> I download also a project by https://www.journaldev.com/2192/struts-2-file-upload-example , modify tag <param name="fileUpload.allowedTypes"> but also it doesn't work with Csv file.
> Is a bug?

Did you use IE/Edge to test the app? Looks like CSV files were
registered with application/vnd.ms-excel instead of text/csv


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org