Format Files!

Last post 03-02-2012, 7:56 AM by Kenneth. 2 replies.
Sort Posts: Previous Next
  •  03-02-2012, 5:02 AM 73282

    Format Files!

    Hi!
     
    I can upload the files to my server,but this files apear in my $uploader->TempDirectory with a rare name "persisted.1BC1FFF1-1F05-EEC9-3847-ABFFDE1C00BD.ferrari.zip.resx"('persisted.'$GUID'.'$nameFile'.resx'). I need to save in my DB the uploaded files. If I save the content of "persisted.1BC1FFF1-1F05-EEC9-3847-ABFFDE1C00BD.ferrari.zip.resx" in my DB and I name the file like ferrari.zip, when some body download the file, do it works? or have I to do anytransformation to the file?
     
    THANKS&BYE
  •  03-02-2012, 6:23 AM 73284 in reply to 73282

    Re: Format Files!

    Also, when i try to move the file to other directory i have this error: "Call to a member function GetUploadedFile() on a non-object in /var/www/vhosts/weberos.es/copiaWeberos/tinymce/jscripts/tiny_mce/plugins/linkdesc/dialog.php on line 159"
    this is the line: $mvcfile=$uploader->GetUploadedFile($_POST["myuploader"]);  
     I have seen that $_POST["myuploader"] have a GUID.
    THX
     
  •  03-02-2012, 7:56 AM 73288 in reply to 73284

    Re: Format Files!

    Hi Vizzent,
     
    Please set property "SaveDirectory", then all upload files will save into the folder you set with the original name.
     
    $uploader->SaveDirectory="/myfolder"; 
     
    Regards,
     
    Ken 
View as RSS news feed in XML