salimoha / googlecl

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

[picasa] Extensions are case sensitive #261

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Not sure if this is a defect or by design (and equally if there are any 
unforeseen ramifications)...

What steps will reproduce the problem?
1.  google picasa post --title "x" CIMG1137.JPG

What is the expected output? What do you see instead?

Expected:
Loading file CIMG1137.JPG to album x

Actual:
Failed to upload CIMG1137.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'])

Workaround:
google picasa post --title "x" CIMG1137.jpg 
(lowercase extension)

Since I am uploading some 20GB+ of photos from a digital camera which 
automatically uses uppercase filenames I didn't want to rename them all.  The 
patch I placed was;

$ diff original/googlecl-0.9.9/src/googlecl/picasa/service.py 
new/googlecl-0.9.9/src/googlecl/picasa/service.py

266c266
<           content_type = 'image/' + ext

---
>           content_type = 'image/' + ext.lower()

which fixes my problem and uploads successfully.

Original issue reported on code.google.com by darryl.c...@gmail.com on 23 Aug 2010 at 4:58

GoogleCodeExporter commented 9 years ago
Issue 267 has been merged into this issue.

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

GoogleCodeExporter commented 9 years ago
Attached patch will fix case sensitivity for photo and video uploads for 
v0.9.9. Thanks for catching this!

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

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r386.

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