This commit is contained in:
2018-04-06 10:48:39 +02:00
parent 6f6cda4125
commit 49bd541cb8
10 changed files with 169 additions and 49 deletions
+2 -2
View File
@@ -33,8 +33,8 @@ $( function () {
$('body').delay(500).fadeIn(1500);
} );
function uploadFile( file, foreignID, tablename, callback ) {
var url = 'index.php/utils/fileUpload/upload/' + foreignID + '/' + tablename;
function uploadFile( file, foreignID, callback ) {
var url = 'index.php/utils/fileUpload/upload/' + foreignID;
var xhr = new XMLHttpRequest();
var fd = new FormData();
xhr.open( "POST", url, true );