Apologies if this has already been covered in this forum.
I seem to be unable to submit a form with a file upload input field. Instead, I get the exception:
"May not URL-encode a file upload request".
I have tried various encoding values in the FORM tag, with no effect. In addition, WebForm.isSubmitAsMime() returns "false" for all encoding values I have tried. However, my browser and web server seem quite happy with my test page and all the encodings I have tried.
Could someone please point me in the right direction?
Thanks in advance for all advice/suggestions
Cheers!
Nik
My test page is:
<!doctype HTML public "-//W3C/DTD HTML 3.2 Final//EN">
I have tried both encoding="..." and enctype="...".
On re-testing, I have found that enctype="multipart/form-data" causes WebForm.isSubmitAsMime() to return "true". However, I still get the same exception when I submit the form.
Cheers!
Nik
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
Apologies if this has already been covered in this forum.
I seem to be unable to submit a form with a file upload input field. Instead, I get the exception:
"May not URL-encode a file upload request".
I have tried various encoding values in the FORM tag, with no effect. In addition, WebForm.isSubmitAsMime() returns "false" for all encoding values I have tried. However, my browser and web server seem quite happy with my test page and all the encodings I have tried.
Could someone please point me in the right direction?
Thanks in advance for all advice/suggestions
Cheers!
Nik
My test page is:
<!doctype HTML public "-//W3C/DTD HTML 3.2 Final//EN">
<html>
<head>
<title>File Upload Test</title>
</head>
<body>
<form action="services/linktest.sh" mode="POST" encoding="multipart/form-data">
<input type="hidden" name="hidden_value" value="bigSecret"/>
File Name <input type="file" name="test"/>
<input type="submit"/>
<input type="reset"/>
</form>
</body>
</html>
Some further detail:
I have tried both encoding="..." and enctype="...".
On re-testing, I have found that enctype="multipart/form-data" causes WebForm.isSubmitAsMime() to return "true". However, I still get the same exception when I submit the form.
Cheers!
Nik
Ok, I found it...
I managed to type mode="..." instead of method="..." in the FORM tag.
Sorry to have taken your time...
Cheers!
Nik