mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #38124 from weilandia/direct_upload_xls_in_chrome
Defaults content_type to application/octet-stream in blob_record.js
This commit is contained in:
commit
11781d0632
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