salimoha / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

Picasa: *.JPG files not uploaded #267

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempt to upload *.JPG to Picasa Album 
2.
3.

What is the expected output? What do you see instead?
Loading file IMG_9083.JPG to album 2010
Failed to upload IMG_9083.JPG. (602: Accepted content types: ['image/bmp', 
'image/jpeg', 'image/jpg', 'image/gif', 'image/png', 'image/mpeg', 
'image/mpeg4', 'image/3gpp', 'image/quicktime', 'image/mp4', 'image/x-ms-wmv', 
'image/avi'])
However, renaming *.JPG to *.jpg subsequently works

What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?
googlecl_0.9.9-1_all.deb on Ubuntu 10.04

Please provide any additional information below.

Original issue reported on code.google.com by eddie.h...@gmail.com on 24 Aug 2010 at 7:15

GoogleCodeExporter commented 9 years ago

Original comment by tom.h.mi...@gmail.com on 24 Aug 2010 at 4:29

GoogleCodeExporter commented 9 years ago
the reason it's not posting is because it looks for files ending in .jpg, and 
not .JPG, so if you're in Linux or OSX you can navigate to the directory 
containing the photos and type the following in a terminal: 

for FILE in *.JPG; do IFS="."; set -- $FILE; mv "$FILE" "./$1.jpg"; done

This will change all of the file extensions to .jpg, and then uploading should 
work just fine.

Original comment by jbigg...@gmail.com on 27 Jun 2011 at 11:57