Submit Your Article Forum Rules

Results 1 to 4 of 4

Thread: Using PHP to upload jpegs

  1. #1

    Using PHP to upload jpegs

    Hi
    I have been having problems uploading .jpg files from my local machine to the server (trying a bit of content management...)

    .gif No Problem but will not work with .jpg

    It always seems to report .jpg with zero file size.
    And the error Warning: Unable to open '' for reading: Permission denied in
    Any ideas?

  2. #2
    Senior Member redcircle's Avatar
    Join Date
    Aug 2003
    Posts
    424
    It would help to see some code.
    www.squitosoft.com - PHP development site. featuring Squito Gallery. a php driven photo gallery.
    www.rgfx.net - Specializing in Internet solutions, including Html authoring, Interactive Web sites, 3D/2D Graphics and animation.

  3. #3
    Senior Member paulhiles's Avatar
    Join Date
    Jul 2003
    Posts
    2,073

    JPG Upload

    Hi Brett

    A bit of code would be handy! Something for other members to comment on perhaps? By the sounds of it, it's more a problem with the file type than the actual upload script.. i.e. the upload itself is not causing an upload error as such.

    I assume you have all the neccessary permissions on the server. Are you manipulating the image filename as part of the process? I've seen instances where that has been the root of the problem.
    So more detail I guess! :c)

    Paul

  4. #4
    Paul and Redcircle

    Thanks for looking at the post but I've sorted the problem

    Stupid of me not to put up the code.

    As I was about to post the code I realised that the max-file-size was set too low on my form.

    That was why it worked with small .gif files but not the larger .jpg files.

    Thanks again

Similar Threads

  1. Pls upload my pic
    By Vitaly in forum Member Photos
    Replies: 2
    Last Post: 02-04-2008, 11:28 AM
  2. GIFs or JPEGS or what?!
    By pagetta in forum Flash Discussion Forum
    Replies: 3
    Last Post: 04-26-2005, 01:46 PM
  3. Optimizing JPEGs
    By WPW_Feedbot in forum Graphics & Design Discussion Forum
    Replies: 0
    Last Post: 02-23-2005, 01:01 AM
  4. Picture heavy site loads slowly...compress jpegs how?
    By Hunter Vaughan in forum Graphics & Design Discussion Forum
    Replies: 15
    Last Post: 01-31-2005, 06:01 PM
  5. ASP.NET Upload
    By WebControlGirl in forum Web Programming Discussion Forum
    Replies: 3
    Last Post: 06-21-2004, 09:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •