Problems setting my own temp directory

Last post 08-18-2009, 4:49 AM by Rickard. 6 replies.
Sort Posts: Previous Next
  •  07-05-2009, 9:17 AM 53734

    Problems setting my own temp directory

    Hi
     
    I try to set a temp directory
     
    $uploader->TempDirectory="/myTempDirectory"; 
     
    but nothing happens, it allways uploads in system temp directory.
     
    Thanks
  •  07-05-2009, 9:59 AM 53736 in reply to 53734

    Re: Problems setting my own temp directory

    Hi,
     
    You need also set that property in the  ajaxuploaderhandler.php
     
    Regards,
    Terry
  •  07-05-2009, 12:59 PM 53738 in reply to 53736

    Re: Problems setting my own temp directory

    Yep, works.
     
    Thanks.
  •  07-05-2009, 2:10 PM 53739 in reply to 53738

    Re: Problems setting my own temp directory

    Hi
     
    Do you guys do custom jobs?
    I like this uploader(not bought it yet) to be implemented in my shop.
    I don't have the full knowledge (php and java) myself.
    I had something nice set up with the  ajax-attachement sample, but setting own temp directory brought me back to zero.
     
    Thanks
  •  07-06-2009, 3:57 AM 53746 in reply to 53739

    Re: Problems setting my own temp directory

    Hi
     
    Sorry for spamming.
    I'll give the misc-filemanager sample a try first and see if I can change it to use on my product pages.
     
    But I like to know if you do custom jobs and how should I contact?
     
    Thanks
  •  07-06-2009, 11:14 AM 53765 in reply to 53746

    Re: Problems setting my own temp directory

    Mrthetree:
    Hi
     
    Sorry for spamming.
    I'll give the misc-filemanager sample a try first and see if I can change it to use on my product pages.
     
    But I like to know if you do custom jobs and how should I contact?
     
    Thanks
     
    Mrthetree,
     
    Please write to [email protected] with your project details.
     

    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-18-2009, 4:49 AM 54754 in reply to 53736

    Re: Problems setting my own temp directory

    I have this problem as well. Whatever I do, the temp files are put in the Windows temp folder, and I get the error that the upload handler can't find the file in the windows temp folder. As that is on the C drive and my web stuff on the E drive, I wan't to change this parameter. I have set it both in the calling script and in the upload handler.
     
    $uploader=new PhpUploader();
    $uploader->Name="mediaUploader";
    $uploader->MaxSizeKB=800000;
    $uploader->MultipleFilesUpload=true;
    $uploader->CancelUploadMsg="Avbryt";
    $uploader->CancelAllMsg="Avbryt alla";
    $uploader->InsertText="Ladda upp filer";
    $uploader->ShowProgressInfo=true;
    $uploader->NumFilesShowCancelAll=2000;
    $uploader->ProgressBarHeight=15;
    $uploader->ProgressPanelWidth=260;
    $uploader->ProgressInfoStyle="padding:3px; font:normal 9px Tahoma;";
      $uploader->ProgressTextTemplate="\r\nFil: %F% \r\nHittils: %P% %SEND% av totalt %SIZE%, %T% sekunder kvar.\r\n";
    $uploader->AllowedFileExtensions="png,gif,jpeg,jpg,wav";
    $uploader->TempDirectory = "e:\\htdocs\\www\\temp\\musicbase\\";
     
    Note that I have tried giving the folder name using single backslashes, forward slashes and omitting the drive letter with the same result. Below is the result screen I get.
     
     
     
View as RSS news feed in XML