Kami edited a comment on issue #1417: InvalidCredsError when uploading .xlsm 
file to Google Storage bucket
URL: https://github.com/apache/libcloud/issues/1417#issuecomment-578709089
 
 
   Thanks for reporting this.
   
   I tried to reproduce it with the code you provided and it works fine for me 
using the latest trunk version.
   
   It could indeed be something with mime type on your system though. On mine, 
it determines mime to be ``application/vnd.ms-excel.sheet.macroEnabled.12`` and 
it works fine.
   
   What kind of mime type is returned on your environment? Checking the output 
of ``LIBCLOUD_DEBUG=/dev/stderr`` might also provide some clues.
   
   Having said that, it also works for me if I set ``Content-Type`` header to 
arbitrary value - the upload still succeeds.
   
   ---
   
   EDIT: If the issue is indeed related to content type you could try 
specifying a custom one using ``extra['content_type']`` value.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to