Hi BlackAce,
First, you can refer to the document at http://phpfileuploader.com/document/
To retrieving the uploaded file, save to your server, change file name Etc, please refer to http://phpfileuploader.com/document/scr/Deployment.htm step 3, it shows you how to handle the upload file store location and the file name after uploaded, so you can save the file there and generate the thumbnail.
3. Retrieving uploaded file.
- <?php
-
- $fileguid=@$_POST["myuploader"];
- if($fileguid)
- {
-
- $mvcfile=$uploader->GetUploadedFile($fileguid);
- if($mvcfile)
- {
-
- echo($mvcfile->FileName);
-
- echo($mvcfile->FilePath);
-
- echo($mvcfile->FileSize);
-
-
- $mvcfile->CopyTo("/uploads");
-
- $mvcfile->MoveTo("/uploads");
-
- $mvcfile->Delete();
- }
- }
- ?>
To upload multiple files at a time, just need to set $uploader->MultipleFilesUpload=true;
Regards,
Ken