This is a migrated thread and some comments may be shown as answers.

UploadFinished Event does not fire when file size exceeds BufferSize

6 Answers 127 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Bryan Hill
Top achievements
Rank 1
Bryan Hill asked on 05 May 2011, 03:06 PM
Version: 2011.1.419.1040

My investigation has revealed that the UploadFinished event from the RadUpload control does not get fired unless one of the files being uploaded is less than the size of the RadUpload.BufferSize.

In my test scenario below the upload fails because the upload folder does not exist.  This is on purpose because I was testing why this event was not always getting fired.

RadUpload.BufferSize = 1,000,000;
All test files BELOW this buffer size would fire the event UploadFinished even when the upload failed.
All test files ABOVE this buffer size would NOT fire event UploadFinished when the upload failed.

I changed to 

RadUpload.BufferSize = 2,000,000;
All test files BELOW 2,000,000 including files ABOVE 1,000,000 that previously failed would fire event UploadFinished even when the upload failed.
All test files ABOVE this buffer size would NOT fire event UploadFinished when the upload failed.

BTW
This might not just be limited to when the upload fails.




6 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 10 May 2011, 05:45 PM
Hi Bryan Hill,

Thank you for bringing this issue to our attention. I logged it as a bug and you can track its progress from our PITS. I also updated your Telerik account accordingly.

I hope this is not a show stopper for you.

Best wishes,
Tina Stancheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Luke
Top achievements
Rank 1
answered on 09 Jun 2011, 06:53 AM
Hi There,

I think we have the same problem using the Sitefinity upload control.

Can't upload videos or files even ones that are just 25 meg. Not sure exactly what the highest allowable is.

Can I increase the buffersize setting?

Is there a work around so we can just get the content in there?

Thanks

Luke

0
Ivan Dimitrov
Telerik team
answered on 10 Jun 2011, 10:18 AM
Hi Luke,

We make optimizations in Sitefinity upload control with is actually based on the RadUpload for Silverligh. With SP2 there would not be a problem to upload 1 GB for less then 5 minutes.

Currently we upload the item by chunks. Each chunk is 1MB, so there would not be  problem with 25 MB. If you run the project through our ProjectManager or Visual Studio can you upload larger files? You can also increase maxReaquestLength in the web.config. The default value is 4 MB.


Kind regards,
Ivan Dimitrov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Luke
Top achievements
Rank 1
answered on 21 Jun 2011, 01:22 AM
Hi Ivan,

Thanks for getting back to me. Sorry it's taken so long for me to reply to you.

I'm still have this problem. The upload races away and appears to upload the file perfectly. It's just after the upload it hangs seemingly to verify the file or something and then I get the following...

(This happens whether launched from IIS or the project manager).
Sitefinity version: 4.1.1395.0

I didn't change the maxWebRequest setting. Do you think that I should?

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Timestamp: Mon, 20 Jun 2011 08:31:04 UTC

Message: Unhandled Error in Silverlight Application Exception has been thrown by the target of an invocation.   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Delegate.DynamicInvoke(Object[] args)
   at Telerik.Windows.RadRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at Telerik.Windows.RadRoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at Telerik.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RadRoutedEventArgs routedEventArgs)
   at Telerik.Windows.EventRoute.InvokeHandlersImpl(Object source, RadRoutedEventArgs args, Boolean raisedAgain)
   at Telerik.Windows.RadRoutedEventHelper.RaiseEvent(DependencyObject element, RadRoutedEventArgs args)
   at Telerik.Windows.Controls.RadUpload.OnFileUploadCompleted(Object sender, EventArgs e)
Line: 1
Char: 1
Code: 0
URI: http://finity/Sitefinity/Dialog/UploadDialog?contentType=Telerik.Sitefinity.Libraries.Model.Document&providerName=OpenAccessDataProvider&itemName=Document or other file&itemsName=documents or other files&libraryTypeName=Library&libraryType=Telerik.Sitefinity.Libraries.Model.DocumentLibrary&childServiceUrl=%7e%2fSitefinity%2fServices%2fContent%2fDocumentService.svc%2f&parentServiceUrl=%7e%2fSitefinity%2fServices%2fContent%2fDocumentLibraryService.svc%2f



0
Ivan Dimitrov
Telerik team
answered on 23 Jun 2011, 04:02 PM
Hi Luke,

There is a SP2 released yesterday. Can you download it, install a sample project and let me know if you can replicate the issue? This will help us to see whether the problem is related only this specific project or it affects all projects you installed.
The error does not provide some details. I suppose that there is an inner exception. You can check whether there is some info in App_Data/Logs folder ( clear it before testing) and enable Service Tracer  http://msdn.microsoft.com/en-us/library/ms732023.aspx to narrow down the issue if it comes from our services.

Let me know how it goes.

Kind regards,
Ivan Dimitrov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Luke
Top achievements
Rank 1
answered on 12 Jul 2011, 05:02 AM
Hey Ivan,

Again sorry for the delay. Finally got around to upgrading the site. Worked a charm and can now upload large files.

You can close this issue if you like.

Thanks for you help.

Tags
Upload
Asked by
Bryan Hill
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Luke
Top achievements
Rank 1
Ivan Dimitrov
Telerik team
Luke
Top achievements
Rank 1
Share this question
or