fix Resize before Upload not respecting target_filename

References #264 (was not really mentioned there)
This commit is contained in:
Ian 2015-01-18 14:17:11 +01:00
parent f6438592c4
commit 3902c88916

View File

@ -1425,7 +1425,7 @@ $(function() {
data.append('serendipity[adminModule]', 'media');
data.append('serendipity[adminAction]', 'add');
data.append('serendipity[token]', $('input[name*="serendipity[token]"]').val());
data.append('serendipity[target_filename][1]', file.name);
data.append('serendipity[target_filename][1]', $('input[name*="serendipity[target_filename][1]"]').val());
var type = file.type;
if (type == "image/bmp") {
{* bmp is not supported *}