This is a discussion on "Won't send jpeg format? Please check my php." within the PHP Forum section. This forum, and the thread "Won't send jpeg format? Please check my php. are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Won't send jpeg format? Please check my php.
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Won't send jpeg format? Please check my php.
Hello, please can you help me make my form work. I have tested it and it allows me to upload a gif file and send no problem, however when I try to send with a jpeg file it comes up wrong file format?
Last edited by Jack Franklin; Apr 15th, 2008 at 16:47. |
|
|
|
||||
|
Re: Won't send jpeg format? Please check my php.
add a JPG in CAPTIALS, see if that works
( i dont know much about php, but i do know that can make a difference sometimes )
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Last edited by saltedm8; Apr 15th, 2008 at 10:22. |
|
|||
|
Re: Won't send jpeg format? Please check my php.
Can you make a post with the output of this when you try to upload the jpg:
that would help to find the problem. Last edited by jimz; Apr 15th, 2008 at 12:53. |
|
||||
|
Re: Won't send jpeg format? Please check my php.
__________________
echo "Take it easy, ".$CloudedVision; .links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; } <quote>"I think it's wrong that only one company makes the game Monopoly" - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
|
|
|||
|
Re: Won't send jpeg format? Please check my php.
Thank you for all your replys, will try them out and let you know the outcome. Thanks again
|
|
|||
|
Re: Won't send jpeg format? Please check my php.
Quote:
Array( [strresume] => Array ( [name] => bannerhorizontal.jpg [type] => image/pjpeg [tmp_name] => /tmp/php4CPWf1 [error] => 0 [size] => 34414 )) |
|
|||
|
Re: Won't send jpeg format? Please check my php.
Quote:
|
|
|||
|
Re: Won't send jpeg format? Please check my php.
Ok, I think I've spotted your problem. Did you notice when you did "print_r($_FILES)" the type was "image/pjpeg"?
So, you just need to add that to the end of your if statement like so:
Give that if statement a go, and see if that works |
|
|||
|
Re: Won't send jpeg format? Please check my php.
Thank you so much jimz I hadn't even noticed the p in front of jpeg!!!
Works fine now, I really appreciate all your help |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] jpeg quality in flash movies | danny322 | Flash & Multimedia Forum | 3 | Dec 6th, 2007 12:54 |
| Problem with PNG transparency on JPEG background | Rob Riot UK | Web Page Design | 4 | May 11th, 2007 12:10 |
| Converting JPEG to gif/bmp | lalmm | PHP Forum | 2 | May 7th, 2007 17:45 |
| whats the difference between jpeg, gif, png etc | SJMAC | Graphics and 3D | 1 | Feb 12th, 2007 22:38 |
| print file (pdf, jpeg or word doc) | ecat | JavaScript Forum | 0 | Sep 15th, 2006 18:28 |