use post instead of get
This commit is contained in:
parent
0089b17749
commit
1d0ee61f3a
|
@ -7,9 +7,9 @@ OCP\JSON::checkLoggedIn();
|
||||||
OCP\JSON::callCheck();
|
OCP\JSON::callCheck();
|
||||||
|
|
||||||
// Get data
|
// Get data
|
||||||
$dir = stripslashes($_GET["dir"]);
|
$dir = stripslashes($_POST["dir"]);
|
||||||
$file = stripslashes($_GET["file"]);
|
$file = stripslashes($_POST["file"]);
|
||||||
$target = stripslashes(rawurldecode($_GET["target"]));
|
$target = stripslashes(rawurldecode($_POST["target"]));
|
||||||
|
|
||||||
$l=OC_L10N::get('files');
|
$l=OC_L10N::get('files');
|
||||||
|
|
||||||
|
|
|
@ -877,7 +877,7 @@ var folderDropOptions={
|
||||||
$(files).each(function(i,row){
|
$(files).each(function(i,row){
|
||||||
var dir = $(row).data('dir');
|
var dir = $(row).data('dir');
|
||||||
var file = $(row).data('filename');
|
var file = $(row).data('filename');
|
||||||
$.get(OC.filePath('files', 'ajax', 'move.php'), { dir: dir, file: file, target: dir+'/'+target }, function(result) {
|
$.post(OC.filePath('files', 'ajax', 'move.php'), { dir: dir, file: file, target: dir+'/'+target }, function(result) {
|
||||||
if (result) {
|
if (result) {
|
||||||
if (result.status === 'success') {
|
if (result.status === 'success') {
|
||||||
//recalculate folder size
|
//recalculate folder size
|
||||||
|
@ -925,7 +925,7 @@ var crumbDropOptions={
|
||||||
$(files).each(function(i,row){
|
$(files).each(function(i,row){
|
||||||
var dir = $(row).data('dir');
|
var dir = $(row).data('dir');
|
||||||
var file = $(row).data('filename');
|
var file = $(row).data('filename');
|
||||||
$.get(OC.filePath('files', 'ajax', 'move.php'), { dir: dir, file: file, target: target }, function(result) {
|
$.post(OC.filePath('files', 'ajax', 'move.php'), { dir: dir, file: file, target: target }, function(result) {
|
||||||
if (result) {
|
if (result) {
|
||||||
if (result.status === 'success') {
|
if (result.status === 'success') {
|
||||||
FileList.remove(file);
|
FileList.remove(file);
|
||||||
|
|
Loading…
Reference in New Issue