Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

safari and Input type=file (ASP.NET)

input type=file prevents form posting to 2nd page

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

New User

5+ Year Member

joined:Feb 9, 2011
posts: 5
votes: 0

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?
4:32 pm on Feb 9, 2011 (gmt 0)


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

joined:July 31, 2003
votes: 2

Discussion continues here ...