Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

Unable to find the uploaded file in directory

Last post 12-24-2009, 12:47 PM by Ofer Tal. 25 replies.
Page 1 of 2 (26 items)   1 2 Next >
Sort Posts: Previous Next
  •  02-03-2009, 1:25 PM 48314

    Unable to find the uploaded file in directory

    Have licensed CuteEditor, upgraded to latest version and receiving "Unable to find the uploaded file in directory" message when trying to upload file. web.config > configuration > httpModules does contain the line <add name="CuteEditor.UploadModule" type="CuteEditor.UploadModule,CuteEditor"/> and (obviously) the dlls from the package's bin directory are in the bin directory of my site.
     
    When I start to upload, I can see a 0 size file created in the CuteEditorTemp directory, no progress bar advances, and after a while the file is deleted and the message pops up on the client.
     
    I am using this in Framework 2.0 with ASP.Net AJAX. I see this happening both on my development box (WinXP/IIS5.x) and on my staging box (Server 2003/IIS6). I get this with both IE and FF
  •  02-03-2009, 1:57 PM 48316 in reply to 48314

    Re: Unable to find the uploaded file in directory

    Try the steps below.
     
    1. Create a folder under and name it "CuteEditorTemp".
     
    2. Open your web.config and add the following entry:
     
    <add key="CuteEditorTempPath" value="~/CuteEditorTemp" />

    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

  •  02-03-2009, 2:02 PM 48318 in reply to 48314

    Re: Unable to find the uploaded file in directory

    Additional information (FWIW):
     
    in my test, I am uploading a 1.4M pdf file (other files do the same) and the server is my own machine so I'm expecting the "network time" for the upload to be practically zero.
     
    It is not... After clicking upload and selecting a file, an empty progress bar is displayed (and the text labels indicating progress at 0KB) nothing happens on the client side for about 20-30 seconds and then I get the message "Unable to find the uploaded file...".

    during the upload, looking at the server side, I can see in windows explorer that a file does get created in the temp directory, named: uploading.681d5c18-7bd3-fc7c-424b-47d4de77180e.681d5c18-7bd3-fc7c-424b-47d4de77180e.resx (so I assume this means there is no permission problem for the ASPNet/Anonymous user to write to the temp directory) but it just remains at 0 bytes for the same 20-30 seconds. Then it disappears (gets deleted)
     
    My application event log has no messages or exceptions logged at the same time.
  •  02-03-2009, 2:08 PM 48320 in reply to 48316

    Re: Unable to find the uploaded file in directory

    I did that already (based on a different forum post I saw)
    The changes I made to web.config related to CuteEditor are:
     
    under appSettings:
    <add key="CuteEditorTempPath" value="~/Tmp/CuteEditorTemp" />

    (and ~/Tmp/CuteEditorTemp maps to a folder with full access to the appropriate users, see my other post -- evidently a file does get created in that folder)

    under system.web > httpModules:
    <add name="CuteEditor.UploadModule" type="CuteEditor.UploadModule,CuteEditor"/>

     
    I don't know enough about http modules to be able to tell if the module got loaded correctly or failed... is there any way to verify if an httpModule is loaded?
     
    The CuteEditor dll  is simply in the bin directory of the web site, not in the GAC, is that ok?
     

  •  02-03-2009, 2:51 PM 48323 in reply to 48320

    Re: Unable to find the uploaded file in directory

    When did you download the control?
     
    >>The CuteEditor dll  is simply in the bin directory of the web site, not in the GAC, is that ok?
     
    Yes.
     

    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

  •  02-03-2009, 4:27 PM 48328 in reply to 48323

    Re: Unable to find the uploaded file in directory

    I downloaded it just a few days ago,
     
    The following version information is available when right-clicking CuteEditor.dll > Properties:
     
    File Version: 6.2.0.0
    Description: CuteEditor 6.2 Build 2008-12-10


    That seems pretty up-to-date...
  •  02-03-2009, 6:04 PM 48330 in reply to 48323

    Re: Unable to find the uploaded file in directory

    And as for the reference to thread 46337 -- That's the posting I saw before posting my own, and that is what I based my troubleshooting on (so far).
    All the suggestions in that thread have been implemented, I get this problem in FF as well as IE and my CuteEditor is the latest version (I believe), but still this problem is happening.
     
     
  •  02-03-2009, 7:04 PM 48332 in reply to 48330

    Re: Unable to find the uploaded file in directory

    To help troubleshoot this thing --
    since it appears from previous suggestions, that this could either be:
    1. a permission problem on the temp folder. BUT NOT IN THIS CASE - the fact I can see the temporary file created and deleted in the correct temp folder path pretty much proves that the temp folder is set up correctly and is writable by asp.net
    2. a problem with the registration of the CuteEditor Upload httpHandler in web.config.
     
    To prove/disprove #2 it would be nice if you could provide me with a url/request I can set up to test just that this handler is working correctly. e.g. If I can go to a url such as: "http://localhost/MyProject/CuteEditor_Upload.ashx?some_parameters=some_values" and know that the handler should respond to this request with a predictable response (other than a server error) that will make it obvious if the handler is registered correctly or not.
     
    Since I know nothing about the (undocumented) communication between your control and the upload handler (and have no intentions of reverse engineering it :) ) I'll just have to wait for futher instructions
  •  02-04-2009, 11:43 AM 48366 in reply to 48323

    Re: Unable to find the uploaded file in directory

    Adam,
     
    Until we can figure out how to make the Upload httpHandler method work for my site, is there a way to cause CuteEditor to revert to the method of uploading files to the gallery used in previous versions of CE6 (one by one, no progress indicator etc...)?
     
    I'd love to have the benefit of multiple file upload, but as it is right now, I have upgraded CuteEditor and lost the ability for my users to upload files altogether.
     
    Ofer
  •  02-04-2009, 11:49 AM 48367 in reply to 48366

    Re: Unable to find the uploaded file in directory

    1. First I suggest you download the latest build and try again.
     
    2. To test the permission setting of the temp folder, please try the following code.
     
    3.  >>is there a way to cause CuteEditor to revert to the method of uploading files to the gallery used in previous versions of CE6 (one by one, no progress indicator etc...)?
     
    Open CuteSoft_Client\CuteEditor\Dialogs\InsertImage.aspx and change the following code:
     
    <CE:Uploader id="InputFile" runat="server"></CE:Uploader>
     
    to:
     
    <CE:Uploader id="InputFile" runat="server" UploadType="IFrame"></CE:Uploader>
     

    <% @Page Language="C#" %>
    <html>
    <head runat="server" />
      <title>File upload in ASP.NET</title>
    </head>
    <body bgcolor="#ffffff" style="font:8pt verdana;">
    <script language="C#" runat="server">
    void btnUploadTheFile_Click(object Source, EventArgs evArgs)
    {
      string strBaseLocation = txtServerpath.Value;
     
      strBaseLocation=strBaseLocation.TrimEnd('/')+"/";
      strBaseLocation=Server.MapPath(strBaseLocation);
     
      if (null != uplTheFile.PostedFile)
      {
        try
        {
          uplTheFile.PostedFile.SaveAs(strBaseLocation+"cetest.gif");
          txtOutput.InnerHtml = "File <b>cetest.gif</b> uploaded successfully";
        }
        catch (Exception e)
        {
          txtOutput.InnerHtml = "Error saving <b>" +
            strBaseLocation+"cetest.gif</b><br>"+ e.ToString();
        }
      }
    }
    </script>

    <table>
    <form enctype="multipart/form-data" runat="server">
    <tr>
      <td>Select file:</td>
      <td><input id="uplTheFile" type=file runat="server"></td>
    </tr>
    <tr>
      <td>Path on server:</td>
      <td><input id="txtServerpath" type="text" runat="server"></td>
    </tr>
    <tr>
      <td colspan="2">
      <input type=button id="btnUploadTheFile" value="Upload"
                        OnServerClick="btnUploadTheFile_Click" runat="server">
      </td>
    </tr>
    </form>
    </table>
       
    <span id=txtOutput style="font: 8pt verdana;" runat="server" />

    </body>
    </html>


    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

  •  02-04-2009, 1:35 PM 48378 in reply to 48367

    Re: Unable to find the uploaded file in directory

    1. I created a test.aspx page under the same project with the code provided for testing permissions, ran the page and specified the same server path I have in my web.config (~/Tmp/CuteEditorTemp), the file uploaded successfully, I got the message "File cetest.gif uploaded successfully" and a file named cetest.gif was indeed at the physical folder mapped to ~/Tmp/CuteEditorTemp. CONCLUSION: no permission probblems there.
     
    2. I downloaded the package again (I checked, the last time I downloaded it was 1/30/2009) I overwrote all binaries and everything under CuteSoft_Client other than the "CuteEditor/Configuration" folder (I didn't want to have to merge changes to my "MyTool.config" file again if it isn't absolutely necessary.
     
    Now here's the VERY curious thing:  I built the web site, ran it and uploaded a couple of files SUCCESSFULLY :) BUT then, when I happily checked-in all the files (bin dlls and CuteSoft_Client files and directories) into source control (which makes them read-only) it immediately stopped working again.
    Does any of the uploading code write anything (log file?, debug file?, a note to grandma? ;)  ) under CuteSoft_Client???? if that is the case, that's what causes my failure -- you see, since the project is a VS2005 web project without a project file ANY file under it that is not specifically excluded from source control becomes part of the project and is checked in.
     
    Can you please check if this is the case? Will CuteEditor work if ALL the files under CuteSoft_Client are read-only?
     
     

  •  02-04-2009, 3:47 PM 48384 in reply to 48378

    Re: Unable to find the uploaded file in directory

    The observation about read-only/checked-in files may have been premature.
    I am testing again with both browsers after clearing all cached files and it seems to be working OK. I will update again if the issue persists.
  •  02-05-2009, 11:18 AM 48424 in reply to 48367

    Re: Unable to find the uploaded file in directory

    I am still having trouble with the uploading functionality:
     
    It is now working fine for files under ~200K, but whenever I upload a larger file, I again get the same error message (unable to find the uplaoded file in the directory)
     
    I am using IIS 6/ASP.NET 2.0 and use file uploading myself in the same application, so I do have the Metabase.xml setting for AspMaxRequestEntityAllowed="104857600" (~100M), IIS6 does not use the httpRuntime maxRequestAllowed attribute, and in any case to be sure I used the aspx file upload test page you posted above on the same server, same application and was able to upload a 1.2M image that I was unable to upload in CuteEditor.


    What do I do about this?
     
    Another piece of information:
    I checked my IIS logs, and I can see a bunch of requests to /CuteEditor_Uploader_Resource.axd?type=emptyhtml all get a 200 OK Http status. I guess that indicates that the Uploader Http module is correctly configured in web.config (otherwise I would get 404 or another eror http status)
  •  02-06-2009, 11:25 AM 48454 in reply to 48424

    Re: Unable to find the uploaded file in directory

    Can you download the AJax Uploader and test it?
     
    I know you are using Cute Editor and I just want to know the Ajax Uploader work for this situation or not.
     
     
    Keep me posted

    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

  •  02-06-2009, 6:46 PM 48461 in reply to 48454

    Re: Unable to find the uploaded file in directory

    Adam,
     
    It took me a while to get to it, but I did download the Ajax Uploader and added it along with one of the sample aspx pages to the same project.
    I had the exact same results:
    uploading a small (<200K) file worked fine (got confirmation in the "server trace" textbox)
    uploading a large file (1.8M pdf in this case) got a progress bar and info that were stuck at 0 bytes (Uploading Guide.pdf.  - KB of  - KB at  - KB/s;  -  seconds remaining) eventually followed by the message "Unable to find the uploaded file in directory : ..."
     
    I noticed another thing - I have been doing most of my testing with firefox. In IE, small files work, and with large files the progress bar and progress info line appear and do not advanced but rather than eventually showing the "Unable to find the uploaded file" message, IE most of the times just completely freezes and has to be killed from the task manager.
     
    TO MAKE THINGS WORSE...
    I decided to apply the change you mentioned a few days ago to revert to the "old way of uploading files" by adding the UploadType="IFrame" attribute to the various CE:Uploader tags in the CuteEditor dialogs.
     
    It did change the interface so that I am presented with a "File Input" style browse button and are able to select a single file only but once I select a large file (>200K) the progress bar appears.
    This time, it DOES start moving but after a very short time gets stuck at 48kB: "Uploading Disclosures.pdf. 48.00 kB of 1.78 MB at 1KB/s; 1960 seconds remaining"
    it does not move beyond the 48kB mark and since it never completes my file is never added to the correct folder and even with this workaround in place my users still cannot upload files!
     
    The upload problems in this new version of CuteEditor are becoming a huge liability for me at this point...
    Please HELP...
     
     
     
     
  •  02-12-2009, 1:34 PM 48686 in reply to 48461

    Re: Unable to find the uploaded file in directory

    Ofer Tal,
     
    Is your site online?
     
    If so, can you set up FTP access and send it to me.
     
    I will have our developers check it for you.

    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

  •  02-12-2009, 5:19 PM 48723 in reply to 48686

    Re: Unable to find the uploaded file in directory

    Adam,
    Sorry, although the site is online, it is a very busy production site with thousands of users -- I wouldn't dream of letting anyone outside my engineering team FTP into it.
     
    However:
    1. I did find a way to make the "old" Iframe style upload work (one file at a time), in order for it to work I had to actually REMOVE the httpModule of the uploader. Once the web.config change was made, the IFrame attribute worked and my users were able to upload files >200k again.
    2. If you want to set up a time for it (I'll send you a personal message with my cell phone number tocoordinate) I can share my desktop with you or your developer (via GoToMeeting or WebEx) and we can either troubleshoot this issue directly on my local development site or remotely on our staging server, both of which are not accessible from the web. This may sound complicated, but I can make it happen in about 10 minutes.
     
    Ofer
     
  •  02-25-2009, 10:25 AM 49228 in reply to 48723

    Re: Unable to find the uploaded file in directory

    Hi,
     
    Some thime has passed and no resolution was found so far (other than a workaround that reduces functionality (disables the ajax uploader and leaves me with single file uploads and no progress bar.
     
    This is 100% reproducible in my environment. Is there a way to turn on some "debugging mode" in cute editor and have it log messages about what's going on or what is failing? I can reproduce this in my development env. as well, so
    I shouldn't have a problem providing a log of the failing upload functionality.
     
    BTW - no one from CuteSoft has contacted me so far to set up a time to remote in to my development machine and check this problem
     
    Any other suggestions?
  •  02-25-2009, 12:20 PM 49231 in reply to 49228

    Re: Unable to find the uploaded file in directory

    I downloaded the latest versionand now, when I upload a large file I get this: (System Exception: Upload data transfer expired) -- maybe this information helps
     
     
     
     
  •  02-25-2009, 12:31 PM 49232 in reply to 49231

    Re: Unable to find the uploaded file in directory

    Hi,
     
    Do your application installed any http modules?
     
    Regards,
    Terry
     
     
Page 1 of 2 (26 items)   1 2 Next >
View as RSS news feed in XML
Powered by ASP.Net
Copyright 2003 - 2017 CuteSoft Components Inc.. All rights reserved.