PDA

View Full Version : Upload succesfull but no photos


msbc
5th of February 2005 (Sat), 02:04
Just installed a clean EE1.5RC4 on my home Mac. Using Apache 1.3, PHP 5.0.3, MySQL 4.1.9.

Doing my first uploads and all seems to work well, except I have no images! Checking my photos folders there are no files in the thumbs, microthumbs, large, medium or small folders (3 images sizes) - but all the messages on the UPLOAD page show OK!!

Any ideas?

msg 2232 | ftp:

Automatic database maintenance:
table: eegallery.ee_order_to_exhibition | operation: repair | status: OK
table: eegallery.ee_photo | operation: repair | status: OK
table: eegallery.ee_photo_eng | operation: repair | status: OK
table: eegallery.ee_photo_to_category | operation: repair | status: OK
table: eegallery.ee_photo_to_ee_commerce_template | operation: repair | status: OK
table: eegallery.ee_photo_to_exhibition | operation: repair | status: OK
msg 2231 | ftp: UPLOAD FINISHED SUCCESFULLY.
msg 2230 | database action: Photo id 37 added to database.
msg 2229 | database action: GUESS LENS: | Searching maker: Canon | Searching aperture: 4.8 | Searching focal: 29 | Searching focal range: 29 | highest ranking lens id found is: 12
msg 2228 | database action: GUESS CAMERA: | Searching maker: Canon | Searching keywords | Canon | EOS | 10D | highest ranking camera id found is: 2
msg 2227 | ftp: LOCAL: DISCONNECTED
msg 2226 | ftp: LOCAL:
'20030904_0040.jpg' UPLOADED SUCCESFULLY
SIZE: 1280x887 => 43x29 microthumb (IMAGEMAGICK 43) , 921 B in server.
msg 2225 | imagemagick: IMAGEMAGICK COMMAND (resize+sharpen) | /usr/local/bin/convert -size 43x29 UPLOAD/20030904_0040.jpg -resize 43x29! +profile '*' -unsharp 0.6x0.7+2+0.1 -quality 67 UPLOAD/ee_temp_upload/20030904_0040.jpg | EXECUTED OK
msg 2224 | ftp: LOCAL: Working directory changed to '/Sites/Gallery/photos/microthumbs'
msg 2223 | ftp: LOCAL: Changed to passive mode
msg 2222 | ftp: LOCAL: Logged in as 'Mark'
msg 2221 | ftp: LOCAL: Connected to '127.0.0.1'
msg 2220 | ftp: LOCAL: DISCONNECTED
msg 2219 | ftp: LOCAL:
'20030904_0040.jpg' UPLOADED SUCCESFULLY
SIZE: 1280x887 => 110x76 thumb (IMAGEMAGICK 110) , 4 KB in server.
msg 2218 | imagemagick: IMAGEMAGICK COMMAND (resize+sharpen) | /usr/local/bin/convert -size 110x76 UPLOAD/20030904_0040.jpg -resize 110x76! +profile '*' -unsharp 0.4x0.5+2+0.1 -quality 80 UPLOAD/ee_temp_upload/20030904_0040.jpg | EXECUTED OK
msg 2217 | ftp: LOCAL: Working directory changed to '/Sites/Gallery/photos/thumbs'
msg 2216 | ftp: LOCAL: Changed to passive mode
msg 2215 | ftp: LOCAL: Logged in as 'Mark'
msg 2214 | ftp: LOCAL: Connected to '127.0.0.1'
msg 2213 | ftp: LOCAL: DISCONNECTED
msg 2212 | ftp: LOCAL:
'20030904_0040.jpg' UPLOADED SUCCESFULLY
SIZE: 1280x887 => 1280x887 NONE , 1158 KB in server.
msg 2211 | ftp: LOCAL: Working directory changed to '/Sites/Gallery/photos/large'
msg 2210 | ftp: LOCAL: Changed to passive mode
msg 2209 | ftp: LOCAL: Logged in as 'Mark'
msg 2208 | ftp: LOCAL: Connected to '127.0.0.1'
msg 2207 | exif: EXIF of 'UPLOAD/20030904_0040.jpg':

* Make =>Canon

Pekka
5th of February 2005 (Sat), 05:14
If ftp is successfull then it has transferred files. Perhaps the ftp location and size path URL do not match:

Check that "/Sites/Gallery/photos/" is indeed the correct ftp path to same folder which is referred in size path's URL (e.g. http://www.foo.com/Gallery/). Those two paths must point to same physical location in your server. Use standard ftp client program to check the path (with it you can also check where the files actually went).

msbc
6th of February 2005 (Sun), 00:20
Found the main problem - wrong upload paths. Fixed that and images now upload to the correct folders. But, looking at my Gallery all images were displayed as broken, both thumbs and images. Looing at the actual files I noticed they all had permissions of 640 - changed them to 644 and all is well.

So, what makes the images get 640 as permissions when they are uploaded and resized? Original images are 644.

Pekka
6th of February 2005 (Sun), 05:04
Uploaded file permissions are taken from ftp server's configuration file.

For example with ProFTPD that configuration setting is called "Umask".

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022

msbc
6th of February 2005 (Sun), 18:29
Yep, seems the deault umask for MAC OS X FTP server is 027.