3
I’m trying to upload files and it’s not working on IE 8.
OBS.: Works on Chrome and Firefox perfectly.
I did some research and saw that the IE 8/9 can not stand FormData
as enctype
. Ex:
<form id="form" method="post" enctype="multipart/form-data" action="/xpto/upload">
However, according to documentation of vRaptor this enctype is necessary for me to receive mine UploadFile
instantiated in the Controller. Ex.:
@Post("/xpto/upload")
public void upload(UploadedFile arquivos[])
And in fact, I tested it on Chrome and when I don’t put the enctype="multipart/form-data"
my files (UploadFile arquivos[]
) comes with null
, when I put it works properly.
Given this situation I would like to know if there is any way I can make my upload work in vRaptor in IE 8 without using the enctype="multipart/form-data"
.
Thanks for your attention.