.NET Framework Bookmark and Share   
 index > Network Class Library (System.Net) > WebClient:UploadFile fails with bigger files
 

WebClient:UploadFile fails with bigger files

hi

i got a problem with uploading files:
i'm using the upload inside a wordaddin. the addin sends the file to a php file which just saves it. works well with smaller files, but when it comes to larger files like >8mbyte or something, the uploadprocess stops:
http://img149.imageshack.us/img149/8881/wufehler.jpg
the error can be translated as "the request has been canceled: the request hast been canceled..."

i set all variables relating limits in the php.ini to high values like

max_execution_time 1234 1234
max_input_time 600 600
memory_limit 512M 512M
post_max_size 800M 800M
upload_max_filesize 128M 128M

and a web develop board told me i should reconsider the option that my .net addin fails...

  •  
scttytrmn
You will have to get a network trace using Wireshark and/or a trace log for system.net in order to help troubleshoot the issue.

For enabling tracing, see:

http://ferozedaud.blogspot.com/2009/08/tracing-with-systemnet.html


feroze
--
http://ferozedaud.blogspot.com
http://blogs.msdn.com/feroze_daud
Feroze Daud

You can use google to search for other answers

Custom Search

More Threads

• calling bulk insert procedure from aspx application
• Question about NetworkStream.BeginRead() and NetworkStream.EndRead()
• Send a multipart post with data to upload put in a parameter called upfile
• HttpWebRequest, HttpWebReponse, CookieContainer, cookie not set
• Use "Win32_TCPIPPrinterPort" to install a TCP/IP Port
• Trim() for Encoding function
• help!!!
• FTP on IIS return 421 timeout to my FtpWebRequest
• webresponse.ContentLength returns -1
• .NET c# Sockets server