"add message during upload"

This commit is contained in:
Beu 2019-04-28 15:44:02 +02:00
parent a3aeb75f5a
commit 4a2ceafd52
2 changed files with 16 additions and 14 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/conf/config.php

View File

@ -28,19 +28,20 @@ function copytoclipboard()
function ajax_file_upload(file_obj)
{
$.ajax(
{
type: 'PUT',
url: 'index.php',
contentType: false,
processData: false,
data: file_obj,
success:function(response)
{;
var divresponse = document.getElementById('divresponse');
divresponse.innerHTML = response ;
document.getElementById('copytoclipboard').style.visibility = "visible";
}
});
var divresponse = document.getElementById('divresponse');
divresponse.innerHTML = "Uploading file..." ;
$.ajax(
{
type: 'PUT',
url: 'index.php',
contentType: false,
processData: false,
data: file_obj,
success:function(response)
{;
divresponse.innerHTML = response ;
document.getElementById('copytoclipboard').style.visibility = "visible";
}
});
}