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:
parent
22483b86a6
commit
1d133e8a47
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
};
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue