homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Browsers / Apple Safari
Forum Library, Charter, Moderator: open

Apple Safari Forum

safari and Input type=file (ASP.NET)
input type=file prevents form posting to 2nd page

Msg#: 4264576 posted 11:26 am on Feb 9, 2011 (gmt 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?



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

Msg#: 4264576 posted 4:32 pm on Feb 9, 2011 (gmt 0)

Discussion continues here ...

Global Options:
 top home search open messages active posts  

Home / Forums Index / Browsers / Apple Safari
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved