Moves the uploaded file to a new location.
- <?php
- //Gets the GUID of the file based on uploader name
- $fileguid=@$_POST["myuploader"];
- if($fileguid)
- {
- //get the uploaded file based on GUID
- $mvcfile=$uploader->GetUploadedFile($fileguid);
- if($mvcfile)
- {
- //Moves the uploaded file to a new location.
- $mvcfile->MoveTo("/uploads");
- }
- }
- ?>