WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-24-2003, 01:37 PM
brettgodfrey brettgodfrey is offline
WebProWorld Member
 

Join Date: Jul 2003
Location: England
Posts: 49
brettgodfrey RepRank 0
Default 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?
__________________
Brett

www.godfreyhart.com
Reply With Quote
  #2 (permalink)  
Old 10-24-2003, 04:14 PM
redcircle's Avatar
redcircle redcircle is offline
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Grand Rapids, MI USA
Posts: 553
redcircle RepRank 0
Default

It would help to see some code.
Reply With Quote
  #3 (permalink)  
Old 10-24-2003, 04:31 PM
paulhiles's Avatar
paulhiles paulhiles is offline
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default 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
Reply With Quote
  #4 (permalink)  
Old 10-27-2003, 04:36 AM
brettgodfrey brettgodfrey is offline
WebProWorld Member
 

Join Date: Jul 2003
Location: England
Posts: 49
brettgodfrey RepRank 0
Default

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
__________________
Brett

www.godfreyhart.com
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: jpegs, php, upload, using



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Search Engine Friendly URLs by vBSEO 3.0.0