s4cmd
s4cmd copied to clipboard
Added mimetype guessing
Have added the option to guess mimetypes when uploading files. Uses much the same logic as S3cmd, have not implemented mimemagic logic.
Uses the same flags as S3cmd.
-M or --guess-mime-type
Fixes #67
This would be quite useful. I just broke my website by replacing aws s3 sync with s4cmd dsync, because it reset all the content types to application/octet-stream.
fixed up merge issues and reverted the formatting changes my IDE made
I merged this branch into my fork and it seems to work fine. Very helpful for my project as I'm recursively pushing a large number of files from a directory and my site wouldn't work if I uploaded with s4cmd without specifying the mime type for each file individually.
It looks like this change was not yet applied. This is a reason why I still have to use old slow s3cmd. May someone please apply mime-type guessing change?
Thanks.