Skip to content

Commit

Permalink
Fix mime-type in base64 uploads
Browse files Browse the repository at this point in the history
 - Fix mime-type in base64 uploads, thanks to @FinnFrotscher
  • Loading branch information
dr-dimitru committed Aug 30, 2016
1 parent a003dfe commit 69efe75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1552,7 +1552,7 @@ class FilesCollection
_file = @config.file.split ','
@fileData =
size: Math.floor (_file[1].replace(/\=/g, '')).length / 4 * 3
type: _file[0]
type: _file[0].split(';')[0]
name: @config.fileName
meta: @config.meta
@config.file = _file[1]
Expand Down

0 comments on commit 69efe75

Please sign in to comment.