Re: Uploading JPG's



On 24 Aug 2006 07:58:40 -0700, "Mike" <mike@xxxxxxxxxxxxxxxxxxxxx>
wrote:

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.

I agree with the other 2 replies but would add:
is it not possible that this is a filesize issue?
Maybe your server has a limit on upload file sizes?

Uncompressed images from cameras can be a meg in filesize.

Saving with your graphics package quite possibly applies compression
to the image - hence a smaller filesize, hence it uploads OK?
--
Locate your Mobile phone: <http://www.bizorg.co.uk/news.html>
Great gifts: <http://www.ThisBritain.com/ASOS_popup.html>
.



Relevant Pages

  • 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)
  • Re: Opening in unwanted programs
    ... Choose Folder Options. ... Choose "File Types". ... Whenever I double click on a picture> it uploads in a program I don't want it to upload in. ... Is there anyway to change from one program to another,> so that when I double click on a picture it'll upload in> the right program? ...
    (microsoft.public.windowsxp.accessibility)
  • Re: Change "File of Type" in the Browse File dialog box.
    ... check what files are being uploaded and limit option to disallow this with ... What your saying is you want to filter out file types for you input file ... otherwise the files will not upload correctly ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: check clientside file size
    ... Not with PHP, which doesn't work client sided. ... File Upload Form ... and its value is the maximum filesize accepted. ...
    (comp.lang.php)