Skip to content

Commit

Permalink
Flash/SilverLight/Gears: Make mimeType resolution case-insensitive. C…
Browse files Browse the repository at this point in the history
…loses moxiecode#246.
  • Loading branch information
jayarjo committed Apr 11, 2011
1 parent c2dfbd8 commit d2813d1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Version 1.4.3 (2011-04-11)
Fixed Flash to allow multiple uploading of the same file, with different settings.
Fixed Flash runtime to clean anonymous listeners properly.
Fixed HTML5 runtime to resolve to mimeType in case-insensitive way.
Fixed HTML5 runtime for inconsistency in naming of chunks feature, comparing to other runtimes.
Fixed HTML5/Flash/SilverLight/Gears runtimes for inconsistency in naming of chunks feature, comparing to other runtimes.
Fixed HTML4/HTML5 runtimes for input[type=file] to outsize contaner effectively enough to fill the whole click area.
Fixed all runtimes to preserve position (relative/absolute) rule on containers that already have it.
Fixed SilverLight runtime to support large files (over 2GB).
Expand Down
2 changes: 1 addition & 1 deletion src/javascript/plupload.flash.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@

getFlashObj().uploadFile(lookup[file.id], settings.url, {
name : file.target_name || file.name,
mime : plupload.mimeTypes[file.name.replace(/^.+\.([^.]+)/, '$1')] || 'application/octet-stream',
mime : plupload.mimeTypes[file.name.replace(/^.+\.([^.]+)/, '$1').toLowerCase()] || 'application/octet-stream',
chunk_size : settings.chunk_size,
width : resize.width,
height : resize.height,
Expand Down
2 changes: 1 addition & 1 deletion src/javascript/plupload.gears.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@
builder.append(value + crlf);
});

mimeType = plupload.mimeTypes[file.name.replace(/^.+\.([^.]+)/, '$1')] || 'application/octet-stream';
mimeType = plupload.mimeTypes[file.name.replace(/^.+\.([^.]+)/, '$1').toLowerCase()] || 'application/octet-stream';

// Add file header
builder.append(
Expand Down
2 changes: 1 addition & 1 deletion src/javascript/plupload.silverlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
up.settings.url,
jsonSerialize({
name : file.target_name || file.name,
mime : plupload.mimeTypes[file.name.replace(/^.+\.([^.]+)/, '$1')] || 'application/octet-stream',
mime : plupload.mimeTypes[file.name.replace(/^.+\.([^.]+)/, '$1').toLowerCase()] || 'application/octet-stream',
chunk_size : settings.chunk_size,
image_width : resize.width,
image_height : resize.height,
Expand Down

0 comments on commit d2813d1

Please sign in to comment.