UploadFinished Event does not fire when file size exceeds BufferSize

7 posts, 0 answers
  1. Bryan Hill
    Bryan Hill avatar
    7 posts
    Member since:
    Sep 2012

    Posted 05 May 2011 Link to this post

    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.




  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 10 May 2011 Link to this post

    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
  3. DevCraft banner
  4. Luke
    Luke avatar
    2 posts
    Member since:
    Mar 2011

    Posted 09 Jun 2011 Link to this post

    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

  5. Ivan Dimitrov
    Admin
    Ivan Dimitrov avatar
    78 posts

    Posted 10 Jun 2011 Link to this post

    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
  6. Luke
    Luke avatar
    2 posts
    Member since:
    Mar 2011

    Posted 20 Jun 2011 Link to this post

    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



  7. Ivan Dimitrov
    Admin
    Ivan Dimitrov avatar
    78 posts

    Posted 23 Jun 2011 Link to this post

    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
  8. Luke
    Luke avatar
    2 posts
    Member since:
    Mar 2011

    Posted 12 Jul 2011 Link to this post

    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.

Back to Top
DevCraft banner