no upload possible

Last post 08-06-2010, 5:53 AM by claude68. 6 replies.
Sort Posts: Previous Next
  •  08-02-2010, 12:03 PM 62945

    no upload possible

    Hi,
     
    i have changed in upload.php the temporary upload folder with:
     $uploader->TempDirectory=$_SERVER['DOCUMENT_ROOT']."/temp";
    This works fine, files uploaded are written in this temporary directory. I see files like "persisted.545ec26c-628d-46b7-9206-ba21bb0c70e5.Lighthouse.jpg.resx" in this directory
     
    now i want these temporary files to be moved to directory$_SERVER['DOCUMENT_ROOT']."/Uploads"
    But no file is moved to this directory, I can't find them anywhere and also get no error message. My code is following:
     
    $editor=new CuteEditor();   
    $editor->Text="Stay tuned";
    $editor->Width="100%";
    $editor->Height=300;
    $editor->ConfigurationPath = "/Configuration/myTools.config";
    $editor->ThemeType="Office2007";
    $editor->ShowPreviewMode=false;
    $editor->ShowCodeViewToolBar=false;
    $editor->ShowHtmlMode=false;
    $editor->ToggleBorder=false;
    $editor->ID="texte";    
    $uppath ="/Uploads";
    $editor->ImageGalleryPath=$uppath;
    $editor->MediaGalleryPath=$uppath;
    $editor->FlashGalleryPath=$uppath;
    $editor->FilesGalleryPath=$uppath;
    $editor->MaxImageSize="5000000";
    $editor->MaxMediaSize="20000000";
    $editor->MaxFlashSize="5000000";
    $editor->MaxDocumentSize="10000000";
    $editor->ImageFilters=".jpg,.jpeg,.png,.gif";
    $editor->MediaFilters=".avi,.mpg,.mpeg,.mp3,.wav,.wmv";
    $editor->DocumentFilters=".jpg,.jpeg,.png,.gif,.avi,.mpg,.mpeg,.mp3,.wav,.wmv,.txt,.doc,.pdf,.docx,.htm,.html";
    $editor->AllowUpload="true";
    $editor->AllowCreateFolder="true";
    $editor->AllowRename="true";
    $editor->AllowDelete="true";
    $editor->Draw();   
    What is wrong here?
     
    Many Thanks
  •  08-03-2010, 1:39 PM 63039 in reply to 62945

    Re: no upload possible

    If you want temporary files to be moved to directory$_SERVER['DOCUMENT_ROOT']."/Uploads", you also need to modify cuteeditor_files\Dialogs\upload.php file.
     
    Please open cuteeditor_files\Dialogs\upload.php and find the following code: $uploader->Name="UploadControl";
     
    Add the following code so that you can specify a temp file location:
     
    $uploader->TempDirectory="/mytempfolder";

    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

  •  08-04-2010, 2:43 AM 63057 in reply to 63039

    Re: no upload possible

    Hi,
     
    well as you can read in my first post, i have added this line to cuteeditor_files\Dialogs\upload.php and the temporary files are uploaded to this directory BUT they are not moved to the directory $_SERVER['DOCUMENT_ROOT']."/Uploads"!!
     
  •  08-04-2010, 9:07 AM 63075 in reply to 63057

    Re: no upload possible

    claude68:
    Hi,
     
    well as you can read in my first post, i have added this line to cuteeditor_files\Dialogs\upload.php and the temporary files are uploaded to this directory BUT they are not moved to the directory $_SERVER['DOCUMENT_ROOT']."/Uploads"!!
     
     
    Where did the temp files go? Did you get any error message?

    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

  •  08-04-2010, 11:40 AM 63080 in reply to 63075

    Re: no upload possible

    Hi,
     
    the temp files go to $_SERVER['DOCUMENT_ROOT']."/temp" . As already mentioned, i can see the temprary uploaded files in this directory;
    I see files like persisted.545ec26c-628d-46b7-9206-ba21bb0c70e5.Lighthouse.jpg.resx in the directory $_SERVER['DOCUMENT_ROOT']."/temp" .
     
    I get NO error message, but files are not moved in the destination directory $_SERVER['DOCUMENT_ROOT']."/Uploads".
     
    The code of my cuteeditor form is posted in the first message.
     
    many thanks
  •  08-04-2010, 1:23 PM 63085 in reply to 63080

    Re: no upload possible

    Please follow steps:
     
    1. Open "cuteeditor_files\Dialogs\phpuploader\include_phpuploader.php",
    2. Search function "InternalGetTempDirectory" and add temporary directory setting here:
        function InternalGetTempDirectory()
     {
      $dir=$this->TempDirectory;
      
      $dir="d:/temp1/temp1";//please change it to your actual temporary directory
       
      if($dir==null)
       $dir=PhpUploader_GetSystemTempFolder();
      $dir=str_replace("\\","/",$dir);
      if(substr($dir,strlen($dir)-1,1)=="/")
      {
       $dir=substr($dir,0,strlen($dir)-1);
      }
      return $dir;
     }
    3.   Test it again.
     
    Keep us known.
     
    Regards,
    Eric
  •  08-06-2010, 5:53 AM 63166 in reply to 63085

    Re: no upload possible

    :-)
     
    Thank you very much, that was the solution
     
    now it works
     
View as RSS news feed in XML