Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- uploading a pdf
- Stephen Preston
February 27, 2006, 12:29 pm
rate this thread
It gets stalled at this point and displays the echo
echo "<b>File is not a picture. Please try another
This is the content of the $_FILES array
Array ( [name] => 000.pdf [type] => application/pdf [tmp_name] =>
C:\PHP\uploadtemp\php2D.tmp [error] => 0 [size] => 26596 )
is it the 'type' thats wrong or the "image", I'm assuming I'm missing
something in the mime type.
If I try to load a gif file using the same script, it works fine.
Thanks in anticipation
Re: uploading a pdf
not image type (image/png, image/jpeg, image/gif, etc.) then echo file
is not a picture". Well, when you submit a pdf the file type is
application/pdf just like it says in the $_FILES array. If you want it
to work with pdf files then you'll need to remove this checking code.
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum