Re: [PHP] Problem uploading files other than text/plain ones

2002-12-02 Thread Andre Dubuc
Hi Wilmar, Check whether you have something similar: You'll definetly need that for antything other than text/plain ones.. Here's a some code that works for me (uploading jpgs): if ($_FILES["pix"]["size"] > 0){ if ($_FILES["pix"]["type"] == "image/jpeg"){ $pix_file = $

RE: [PHP] Problem uploading files other than text/plain ones

2002-12-02 Thread Keith Sauvant
You know about the php.ini option "upload_max_filesize"? Perhaps its default value is not enough for your task? Greeting from Keith Aachen, Germany -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem uploading files

2002-10-04 Thread Wilmar Perez
Hello Justin, thanks for your comments. Well just to answer your questions: 1. I've got register_globals set to ON. I have never had problem before with my forms, but this is the first time I try to upload a file. 2. I'm following the sample code you recommend. They're in fact pretty sim

Re: [PHP] Problem uploading files

2002-10-04 Thread Justin French
A few observations: if ($formfile == "none") { echo "There is no file to send"; exit; } for starters, I don't see how $formfile could ever be "none"... secondly, if you have register_globals set to off in your php.ini, $formfile wont' even be a variable, but you've only sent what looks like part