fix Resize before Upload not respecting target_filename
References #264 (was not really mentioned there)
This commit is contained in:
parent
f6438592c4
commit
3902c88916
@ -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 *}
|
||||
|
Loading…
x
Reference in New Issue
Block a user