Good day, team
It's possible to upload big file using Firefox & Chrome, everything is ok, but there is a problem with uploading a big document via IE8-9: file is getting truncated to 2048 Kbs.
HttpPostedFile always has ContentLength ~2 Mbs in case of Internet Explorer and big documents.
ContentType is 'application/octet-stream' despite of different real content type (Firefox & Chrome maintain proper ContentType).
Additional details:
In case of IE we can see filled Request.Form["metadata"] with details: number of chunks, total file size, e.t.c
In case of Firefox/Chrome this metadata is null.
I suppose only the first chunk has loaded into file stream in case of IE.
I would like to ask about giving me a clue how to resolve this problem.
It's possible to upload big file using Firefox & Chrome, everything is ok, but there is a problem with uploading a big document via IE8-9: file is getting truncated to 2048 Kbs.
HttpPostedFile always has ContentLength ~2 Mbs in case of Internet Explorer and big documents.
ContentType is 'application/octet-stream' despite of different real content type (Firefox & Chrome maintain proper ContentType).
Additional details:
In case of IE we can see filled Request.Form["metadata"] with details: number of chunks, total file size, e.t.c
In case of Firefox/Chrome this metadata is null.
I suppose only the first chunk has loaded into file stream in case of IE.
I would like to ask about giving me a clue how to resolve this problem.
4 Answers, 1 is accepted
0
Hi Jakmir,
Plamen
the Telerik team
I will recommend you to refer to this documentation article where more information about uploading large files is provided.
Hope this will be helpful.
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
danparker276
Top achievements
Rank 2
answered on 14 Jun 2013, 07:41 PM
I'm having the same problem. It works on Chrome, but not on IE on my XP machines. I followed all the instructions. I couldn't imagine it be something that I need to change on the web server if Chrome works, but IE doesn't.
I get
I get
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.4; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; InfoPath.3; BRI/2)
Timestamp: Fri, 14 Jun 2013 19:39:12 UTC
Message: Exception thrown and not caught
Line: 4018
Char: 1
Code: 0
URI: http://xxxxxxxxx/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a8f393b2b-3315-402f-b504-cd6d2db001f6%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2013.1.220.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3ad8ebf3de-0179-4fa4-89e6-a030e0cf94a1%3a16e4e7cd%3aed16cbdc%3ab7778d6c%3af7645509%3a24ee1bba%3a52af31a4
0
danparker276
Top achievements
Rank 2
answered on 14 Jun 2013, 09:05 PM
FYI, I'm using a custom handler because I need to insert it into the database. If I remove some of the manual upload and javascript I need and have it use the built in silverlight, I get this error if it helps:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.4; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; InfoPath.3; BRI/2)
Timestamp: Fri, 14 Jun 2013 21:00:47 UTC
Message: Exception thrown and not caught
Line: 3289
Char: 8
Code: 0
URI: http://xxxxxx/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a8f393b2b-3315-402f-b504-cd6d2db001f6%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2013.1.220.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3ad8ebf3de-0179-4fa4-89e6-a030e0cf94a1%3a16e4e7cd%3aed16cbdc%3ab7778d6c%3af7645509%3a24ee1bba%3a52af31a4%3a874f8ea2%3a2a2fc429
Message: Unhandled Error in Silverlight Application The remote server returned an error: NotFound. at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at UploadPrototype.MainPage.ProcessResponse(IAsyncResult asyncResult)
at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass19.<
InvokeGetResponseCallback
>b__17(Object state2)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
Line: 1
Char: 1
Code: 0
URI: http://l
Message: Unhandled Error in Silverlight Application Failed to Invoke: _onSilverlightError. at System.Windows.Browser.ScriptObject.Invoke(String name, Object[] args)
at UploadPrototype.EventManager.SilverlightError(String message, Int32 index)
at UploadPrototype.MainPage.<>c__DisplayClass1f.<
ProcessResponse
>b__18()
Line: 1
Char: 1
Code: 0
URI: http://
0
Hi Dan,
Plamen
Telerik
I have tested the issue locally but could not reproduce the described behavior. I am attaching my sample test web page. Please review it and test it and let us know if you still observe the issue with it.
Plamen
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.