You are here: Re: Uploading JPG's « All PHP « IT news, forums, messages
Re: Uploading JPG's

Posted by MS on 10/11/28 11:56

"Mike" <mike@mjfcadsolutions.co.uk> wrote in message
news:1156431520.440401.167560@m73g2000cwd.googlegroups.com...
> I have an upload script which works pretty good.
>
> I use it to upload JPG's but I have come accross the following problem.
>
> It appears that only certain types of JPG's are being accepted.
>
> What I have worked out that if I take an image straight off my digital
> camera (JPG) and try and upload that, it produces an error. I trap for
> file types and size and it won't reconise the file type.
>
> If I take the same image, open it in my graphic package (corel draw in
> this case) and save it as a new file, the upload accepts it.
>
> Has anyone seen this before?

It Depends what and how your are trapping....

I trap for... Extensions
gif
jpeg
jpg
png
and MIME types
"image/gif"
"image/jpg"
"image/png"
"image/x-png"
"image/pjpeg"
"image/pjpeg;"
"image/jpeg"

 

Navigation:

[Reply to this 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

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