UploadProvider does not support file system

Last post 07-14-2010, 11:23 PM by frJericho. 11 replies.
Sort Posts: Previous Next
  •  06-27-2010, 12:00 AM 62014

    UploadProvider does not support file system

     
    I am following the instructions in this article in order to implement a custom provider which does not write temporary files to disk (I am doing this because my application is load balanced on multiple web servers and I don't have access to a folder that is accessible and shared by all web servers).
     
    However, I am getting the following error:

    UploadProvider does not support file system.

    Stack Trace:
    CuteEditor.UploaderEventArgs.GetTempFilePath() +191
    CuteEditor.Dialogs.FileBrowserPage.a(Object A_0, UploadEventArgs A_1) +1598
    CuteEditor.UploaderBase.OnFileUploaded(UploaderEventArgs args) +97
    CuteEditor.UploaderBase.a(UploaderProvider A_0, UploaderEventArgs A_1) + 164
    CuteEditor.UploaderBase.a(String A_0) +1272
    CuteEditor.UploaderBase.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +133
    System.Web.UI.Page.RaiseChangedEvents() +89
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2777

     

  •  06-27-2010, 10:56 PM 62019 in reply to 62014

    Re: UploadProvider does not support file system

    Hi frJericho,
     
    Which line cause this issue? Can you post the full error information herer (or a screenshot)?
     
    Maybe you can refer to section "Store Files (images and documents) into a Database" in http://www.cutesoft.net/example/howto.aspx first.
     
    Regards,
     
    Ken
  •  06-28-2010, 10:57 PM 62053 in reply to 62019

    Re: UploadProvider does not support file system

    Here's the sceenshot of the error I get when the file is uploaded:
     
    Also, the link you have posted does not offer any help regarding a custom provider for the AJAX uploader. Please note that this situation is not related to saving images into a database. I already have a custom provider that allows me to save my images to a database and it's working fine. What I am trying to do is prevent the uploader from writing temporary files to the hard drive.
     
    I looked at CuteEditor.dll in .NET Reflector and found the following line of code is probably causing this problem:
     
    It looks like the FileBrowserPage class is assuming the temporary file is on disk and attempts to use a FileStream to read the content.
  •  06-29-2010, 2:47 AM 62060 in reply to 62053

    Re: UploadProvider does not support file system

    Hi frJericho,
     
    Please do not use method GetTempFilePath() in your own provider.
     
    If allow, please send your own provider code to Kenneth@CuteSoft.net, I will check it and get back to you as soon as possible.
     
    Regards,
     
    ken
  •  06-29-2010, 10:27 AM 62076 in reply to 62060

    Re: UploadProvider does not support file system

    Kenneth,
     
    I am not using GetTempFilePath in my custom provider. The code I showed you is from CuteEditor.dll I used .NET Reflector to investigate CuteSoft's source code and I discovered that CuteEditor has some code to load temprary files from disk. That's the source of this problem.
     
    Let me say it again to make sure I am 100% clear: there is code in the CuteEditor DLL that assumes temporary files are saved on disk and therefore prevent us from using a custom upload provider. The problem is not in my provider, the problem is in CuteEditor.dll. To be even more specific, I can tell you the problematic line of code in CuteEditor.dll is the following:
    The reason why this line of code is problematic is because it makes an assumption: it assumes that the temporary file is located on the server hard drive which is no true when we implement a custom upload provider. Therefore, this line of code fails with the error message I previously demonstrated.
     
    Hopefully this is clear now.
  •  06-30-2010, 3:12 AM 62115 in reply to 62076

    Re: UploadProvider does not support file system

    Hi,
     
    That is a bug. We didn't expect the customer use that provider.
     
    We will update it as soon as possible.
     
    Regards,
    Terry
     
  •  06-30-2010, 3:08 PM 62145 in reply to 62115

    Re: UploadProvider does not support file system

    Thanks Terry.
  •  07-07-2010, 2:51 PM 62336 in reply to 62145

    Re: UploadProvider does not support file system

    Terry, can you give me an update? Do you have a rough estimate when this will be resolved? This is important for me because I need to replace the UploadProvider to make sure that temporary files are not written to disk.
     
    Thanks
  •  07-14-2010, 8:31 AM 62483 in reply to 62336

    Re: UploadProvider does not support file system

    Is it possible to get an update?
  •  07-14-2010, 8:59 AM 62486 in reply to 62483

    Re: UploadProvider does not support file system

    frJericho:
    Is it possible to get an update?
     
    We are discussing this issue and will get back to you tomorrow.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  07-14-2010, 9:28 PM 62493 in reply to 62014

    Re: UploadProvider does not support file system

    Hi,
     
    Please download the last version and try again .
     
    We have fixed it a few days ago.
     
    Regards,
    Terry
     
  •  07-14-2010, 11:23 PM 62498 in reply to 62493

    Re: UploadProvider does not support file system

    Thanks.
     
    It would have been great to know when I asked what was included in the July 3 release.
     
    You guys need to figure out a better way to communicate what issues are resolved when you release a new version. As I have said before, you do a good job of promptly fixing issues that we report but you do no communicate very well.
     
View as RSS news feed in XML