Re: Uploading JPG's




"Mike" <mike@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1156431520.440401.167560@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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"



.



Relevant Pages

  • Re: Uploading JPGs
    ... I use it to upload JPG's but I have come accross the following problem. ... file types and size and it won't reconise the file type. ... I trap for... ...
    (alt.php)
  • Re: .accept = "image/*"
    ... In your click event check for the ContentType of your uploaded file ... If txtFileUpload.PostedFile.ContentType ="image/jpg, image/gif" Then ... "Accept" for your upload textbox so that you could do the following: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: check for jpg and gif without Zend?
    ... I would like to have a way to check for a file to be a jpg or gif file ... I was uploading an image file to a filesystem whilst also entering the details of the upload into a database - these included FileName, ... represented as image/gif and image/jpeg as the types I uploaded, ...
    (comp.lang.php)
  • Re: Upload a file and modify its atributes generates two versions
    ... the properties of the file before upload it to the SPSv2, ... does not generate two versions, but only works with Office file types, if ... > SPS2003 and modifying its atributes. ... one the the uploaded document and the other wtih the new ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Getting a list of file types
    ... rule it will send the uploaded file to a directory on the server if not the ... user is forwarded to page which has a dropdown list of file types, ... select the type of file they wish to upload and the directory on the server ... file with the same extention it goes straight to the folder it was assigned ...
    (microsoft.public.dotnet.framework.aspnet)