Skip to content

Commit da1276d

Browse files
committedDec 14, 2015
Set correct mime type when uploading to S3.
[ci skip]
1 parent cdcec7e commit da1276d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎scripts/aws.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function rbx_s3_upload {
1010
date=$(date +"%a, %d %b %Y %T %z")
1111

1212
acl="x-amz-acl:public-read"
13-
content_type="application/octet-stream"
13+
content_type=$(file --mime-type -b $file)
1414

1515
data="PUT\n\n$content_type\n$date\n$acl\n/$bucket$path$file"
1616
signature=$(echo -en "${data}" |

0 commit comments

Comments
 (0)
Please sign in to comment.