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
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
4 matches
Mail list logo