Hi,
Thanks for reply
there is no error shown but my own echo message i also past the code below if file is more than 1MB.
you can check it
http://onlinedressmall.com/uploadtest.php
<?php
ini_set('max_execution_time', 900); //300 seconds = 5 minutes
$flag=$_REQUEST['flag'];
if($flag == 'yes')
{
$target = "uploadtest/";
$target = $target . basename( $_FILES['uploaded']['name']) ;
$ok=1;
if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target))
{
echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded";
}
else {
echo "Sorry, there was a problem uploading your file.";
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<form enctype="multipart/form-data" action="uploadtest.php" method="POST">
<input type="hidden" name="flag" value="yes" />
Please choose a file: <input name="uploaded" type="file" /><br />
<input type="submit" value="Upload" />
</form>
</body>
</html>
Thanks