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 = $
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
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
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
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
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:
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
7 matches
Mail list logo