Skip to content

Commit

Permalink
fix(upload file): mistaken change to blob source/name
Browse files Browse the repository at this point in the history
  • Loading branch information
gilest committed Jan 28, 2022
1 parent 45bc650 commit 7ec3b29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export default class Queue {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
else if (file instanceof Blob) {
uploadFile = UploadFile.fromBlob(file, FileSource.Blob);
uploadFile = UploadFile.fromBlob(file, FileSource.Browse);
}

if (uploadFile) {
Expand Down
2 changes: 1 addition & 1 deletion addon/upload-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export default class UploadFile {
* @returns the file
*/
static fromBlob(blob: Blob, source = FileSource.Blob) {
const file = new File([blob], source, { type: blob.type });
const file = new File([blob], 'blob', { type: blob.type });
return new this(file, source);
}

Expand Down

0 comments on commit 7ec3b29

Please sign in to comment.