diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index febdfc473b..31fb5f892e 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -191,9 +191,9 @@ FileList={ if(!FileList.deleteCanceled && FileList.deleteFiles){ var fileNames=FileList.deleteFiles.join(';'); $.ajax({ - url: 'ajax/delete.php', + url: OC.filePath('files', 'ajax', 'delete.php'), async:!sync, - data: "dir="+$('#dir').val()+"&files="+encodeURIComponent(fileNames), + data: {dir:$('#dir').val(),files:fileNames}, complete: function(data){ boolOperationFinished(data, function(){ $('#notification').fadeOut();