|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
This is the HTML form (copied from the PHP manual on handling file uploads):
Code:
<form enctype="multipart/form-data" action="upload.php" method="post"> <p><input type="hidden" name="MAX_FILE_SIZE" value="1000" /> Send this file: <input name="userfile" type="file" /> <input type="submit" value="Send File" /></p> </form> And this is the PHP script: PHP Code:
the upload_tmp_dir on my shared server (Apache/Debian Linux/PHP 4.2.3) is set to NULL. How do I find my uploaded file if I want to work on it before I write it to my directory? Last edited by texdc : November 12th, 2002 at 05:01 PM. |
|
#2
|
|||
|
|||
|
have you tried doing a print_r($_FILES) to see what the array contains?
__________________
Best Regards, Håvard Lindset |
|
#3
|
|||
|
|||
|
Thanks Lindset! I didn't even think of that. The problem was my file was bigger than the MAX_FILE_SIZE. Silly me.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > $_FILES['userfile']['tmp_name'] not working |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|