s4cmd icon indicating copy to clipboard operation
s4cmd copied to clipboard

Added mimetype guessing

Open markunsworth opened this issue 9 years ago • 5 comments
trafficstars

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

markunsworth avatar Jun 07 '16 15:06 markunsworth

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.

kennu avatar Jul 31 '16 00:07 kennu

fixed up merge issues and reverted the formatting changes my IDE made

markunsworth avatar Aug 02 '16 13:08 markunsworth

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.

schellj avatar Oct 08 '16 01:10 schellj

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.

Epsiloncool avatar Sep 08 '20 01:09 Epsiloncool