Forum Discussion
aaron_ehrensber
17 years agoContributor
I'm finally getting back to testing and uploading files... And my setup is failing.
I have a post request that passes in one file. I specified the one file in the attachments and have branded it as multipart/form-data because my application is checking for that...
I get my one parameter and I get my file in the servlet, but my debug shows...
item = name=null, StoreLocation=C:\DOCUME~1\AEHREN~1\LOCALS~1\Temp\upload_233f43a7_11ff6bd4b30__7ffd_00000005.tmp, size=16550bytes, isFormField=true, FieldName=baseball.jpg
First off, why is the name null?
Secondly, why is FormField true? When using a JSP, formField shows as false?
Both of these values are giving me headaches. Any thoughts?
I have a post request that passes in one file. I specified the one file in the attachments and have branded it as multipart/form-data because my application is checking for that...
I get my one parameter and I get my file in the servlet, but my debug shows...
item = name=null, StoreLocation=C:\DOCUME~1\AEHREN~1\LOCALS~1\Temp\upload_233f43a7_11ff6bd4b30__7ffd_00000005.tmp, size=16550bytes, isFormField=true, FieldName=baseball.jpg
First off, why is the name null?
Secondly, why is FormField true? When using a JSP, formField shows as false?
Both of these values are giving me headaches. Any thoughts?