fix url for image replacement, too

This commit is contained in:
Jakob Ketterl 2021-04-29 19:53:43 +02:00
parent 318cb728e1
commit 48d498941e

View File

@ -49,7 +49,7 @@ $.fn.imageUpload = function() {
contentType: 'application/octet-stream', contentType: 'application/octet-stream',
}).done(function(data){ }).done(function(data){
$input.val(data.file); $input.val(data.file);
$img.prop('src', '/imageupload?file=' + data.file); $img.prop('src', '../imageupload?file=' + data.file);
clearError(); clearError();
}).fail(function(xhr, error){ }).fail(function(xhr, error){
try { try {