Welcome to WebmasterWorld Guest from 54.226.60.235

Forum Moderators: open

Message Too Old, No Replies

safari and Input type=file (ASP.NET)

input type=file prevents form posting to 2nd page

     

whowell

11:26 am on Feb 9, 2011 (gmt 0)



Hi
I am using ASP.NET (c#)

I have a form on my aspx page with several inputs including one to allow the user to select a file to be uploaded to the server:
<input type="file" name="upload" id="upload">

The form itself uses the POST method to submit to a 2nd page "Savecomments.aspx"
<form id="commentsForm" name="commentsForm" action="SaveComments.aspx" method="POST" autocomplete="off" enctype="multipart/form-data">

If the file input is left blank (no file selected) the rest of the form submits properly

If there is a file selected it fails, none of the elements on form appear to submit correctly I can no longer see them using Request.Form on the recieving page.

Even more confusingly if I use Microsoft Visual Studio to debug my code the local version of the website it creats works fine. Its when I publish my code to my webserver that the problems occur.

I can see no obvious issue with the server security settings and My code works fine on IE,Firefox,Opera and Chrome.
This issue only occurs on safari.

any ideas?

coopster

4:32 pm on Feb 9, 2011 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Discussion continues here ...
[webmasterworld.com...]
 

Featured Threads

Hot Threads This Week

Hot Threads This Month