Reply to Re: upload script question

Your name:

Reply:


Posted by Jon on 12/05/05 17:26

Man, I'm stuck here - Any ideas from anyone?

"Jon" <jonra@netins.com> wrote in message
news:dmqete$55s$1@news.netins.net...
> All,
>
> I'm currently working on a photo upload script using PHP. Everything
> appears to work fine for the most part, however it appears that some of my
> images do not show up with any type... so, I'm running my script using:
>
> if ($_FILES['imagefile']['type'] == "image/jpeg" ||
> $_FILES['imagefile']['type'] == "image/pjpeg")
>
> However, some photos have a type of nothing... so, though the file is
> .jpg, the upload will fail as it's not getting the type of jpeg out of the
> $_FILES array. I've tried opening the actual images that aren't working
> and saving them as .jpg to make sure something didn't go bad on the
> original save, but have the same problem.
>
> Anyone seen this or know of a fix?
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация