Hey Ketil, You need to edit your config file to disable the option "guess_mime_type". It's True by default, change it to False and try uploading again with the same command. $ s3cmd --mime-type=application/octet-stream put /home/user/5000.mov s3://originals-staging/ That should work.
You might want to try that with small text files to start with. That'll save you time and bandwidth. Good luck, Tim. On Fri, May 14, 2010 at 10:18 PM, Ketil Froyn <ke...@froyn.name> wrote: > Hi, > > I'm unable to set the mime-type. Here's what I did: > > u...@laptop:~$ s3cmd --mime-type=application/octet-stream put > /home/user/5000.mov s3://originals-staging/ > /home/user/5000.mov -> s3://originals-staging/5000.mov [1 of 1] > 75843470 of 75843470 100% in 1003s 73.79 kB/s done > u...@laptop:~$ s3cmd info s3://originals-staging/5000.mov > s3://originals-staging/5000.mov (object): > File size: 75843470 > Last mod: Fri, 14 May 2010 13:50:51 GMT > MIME type: video/quicktime > MD5 sum: af18339c55a9fd29e204bc21345df733 > ACL: staging: FULL_CONTROL > u...@laptop:~$ s3cmd --version > s3cmd version 0.9.9.91 > u...@laptop:~$ > > I was expecting the mime-type to be "application/octet-stream", but > it's not. The file already existed on S3 with the same md5sum, and > with the mime-type video/quicktime. > > Is there any way I can change the mime-type? > > Cheers, Ketil > > > ------------------------------------------------------------------------------ > > _______________________________________________ > S3tools-general mailing list > S3tools-general@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/s3tools-general >
------------------------------------------------------------------------------
_______________________________________________ S3tools-general mailing list S3tools-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/s3tools-general