Re: Unable to find the uploaded file in directory

  •  02-04-2009, 11:49 AM

    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

View Complete Thread