Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
PHP File Uploader
»
Re: not geting value in $fileguidlist=@$_POST["myuploader"];
Re: not geting value in $fileguidlist=@$_POST["myuploader"];
09-15-2010, 5:20 AM
pandurang
Joined on 09-14-2010
Posts 9
Re: not geting value in $fileguidlist=@$_POST["myuploader"];
Reply
Quote
<?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)
{
//Gets the name of the file.
echo($mvcfile->FileName);
//Gets the temp file path.
echo($mvcfile->FilePath);
//Gets the size of the file.
echo($mvcfile->FileSize);
//Copys the uploaded file to a new location.
$mvcfile->CopyTo("/uploads");
//Moves the uploaded file to a new location.
$mvcfile->MoveTo("/uploads");
//Deletes this instance.
$mvcfile->Delete();
}
}
this code is not working
?>
View Complete Thread