bolin Posted February 1, 2010 Report Share Posted February 1, 2010 File upload succeeded... Sent: <?php echo $_FILES['file']['name']; ?> Size: <?php echo $_FILES['file']['size']; ?> bytes Type: <?php echo $_FILES['file']['type']; ?> Click here to view file Quote Link to comment Share on other sites More sharing options...
Michael_ Posted February 7, 2010 Report Share Posted February 7, 2010 Do you get values displayed for Sent: Sixe: and Type: also see the use of basename and move_uploaded_file if (move_uploaded_file( $_FILES['file']['tmp_name'], "/usr/local/zend/apache2/htdocs/" . basename($_FILES['file']['name']) ) echo "File is valid, and was successfully uploaded.\n"; else echo "File upload failed!\n"; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.