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

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

2002-12-02 Thread Wilmar Perez
Hello guys I'm trying to do a simple task: upload files. However, when I try to upload files other than text/plain ones I get an empty $_FILES array. Is there anything I've got to modify in my php.ini file? I'm just following the expample in the php manual, the only thing different is that I

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

[PHP] Problem uploading files

2002-10-04 Thread Wilmar Perez
Hello guys This is my first post to the list, hope you can give point me to the right direction. Well, I've been trying to upload a file without much success so far. All I get is my firs error message: "There is no file to send" (shown in the script). This is my form: Book Name:

[PHP] problem uploading files

2001-09-17 Thread Paul Morin
I have a problem with file uploads in php. My code seems to run fine if I am on the local area network but seems to fail when I try from the outside. My server seems to time out. I suspect that the problem could be with the firewall but am unsure. I have php_safe directive off in the php.ini fi