1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Defaults content_type to application/octet-stream

Defaults content_type to application/octet-stream in blob_record.js

[direct_upload_xls_in_chrome]
This commit is contained in:
Nick Weiland 2020-01-07 10:30:56 -08:00
parent 22483b86a6
commit 1d133e8a47
2 changed files with 2 additions and 2 deletions

View file

@ -550,7 +550,7 @@
this.file = file;
this.attributes = {
filename: file.name,
content_type: file.type,
content_type: file.type || "application/octet-stream",
byte_size: file.size,
checksum: checksum
};

View file

@ -6,7 +6,7 @@ export class BlobRecord {
this.attributes = {
filename: file.name,
content_type: file.type,
content_type: file.type || "application/octet-stream",
byte_size: file.size,
checksum: checksum
}