upload pbs

From: Date: Wed, 22 Nov 2000 21:14:31 +0000
Subject: upload pbs
Groups: php.general 
Request: Send a blank email to php-general+get-26710@lists.php.net to get a copy of this message
Hello, i have a form to upload a file. I added the enctype="multipart/form-data" in the form tag. But then when i click on submit i get a pop up message saying "Document contains no data". Here is the code : <HTML> <HEAD> <TITLE>Test upload 2</TITLE> </HEAD> <BODY> test de upload : <BR> <? if ($photo = "none") { print("Pb!!"); } else { print("Local : $photo<BR>"); print("Name : $photo_name<BR>"); print("Size : $photo_size<BR>"); print("Type : $photo_type<BR>"); copy("$photo", "upload/test-file.gif"); } ?> </BODY></HTML> Apparently some other people have had the same pb but i haven't found any answer. Can anybody help?? Thanks, JM PS the scripts works fine on my localhost (red hat 6.1 - php3) but not on our server (linux Debian - php3.0.17) ---------------------- Jean-Marc Lecarpentier Coordinateur formation continue à distance IUT Ifs - Département Informatique Bureau 124 - Tél. 02.31.52.55.05 -------------------------------------------

« previous php.general (#26710) next »