mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-04 22:19:04 +00:00
check file contents; work with file extensions
This commit is contained in:
parent
64f827d235
commit
0fd172edc3
4 changed files with 51 additions and 25 deletions
|
|
@ -24,8 +24,8 @@ $.fn.imageUpload = function() {
|
|||
processData: false,
|
||||
contentType: 'application/octet-stream',
|
||||
}).done(function(data){
|
||||
$input.val(data.uuid);
|
||||
$img.prop('src', "/imageupload?id=" + id + "&uuid=" + data.uuid);
|
||||
$input.val(data.file);
|
||||
$img.prop('src', '/imageupload?file=' + data.file);
|
||||
}).always(function(){
|
||||
$uploadButton.prop('disabled', false);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue