diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-06-04 22:59:18 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-06-04 22:59:18 +0200 |
commit | 153d8fec30af510cb542db180f1192675ef9f029 (patch) | |
tree | 633677d5d1433f8b80ef4893bfe566ce0f2dcee2 /files/ajax | |
parent | b0476bf1745b58e1b4802223902212a274bc19e1 (diff) | |
download | nextcloud-server-153d8fec30af510cb542db180f1192675ef9f029.tar.gz nextcloud-server-153d8fec30af510cb542db180f1192675ef9f029.zip |
fix file actions for newly uploaded files
Diffstat (limited to 'files/ajax')
-rw-r--r-- | files/ajax/upload.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/ajax/upload.php b/files/ajax/upload.php index 0939ad0d097..effee0c03c1 100644 --- a/files/ajax/upload.php +++ b/files/ajax/upload.php @@ -21,7 +21,7 @@ if(!empty($dir)) $dir .= '/'; $target='/' . stripslashes($dir) . $fileName; if(strpos($dir,'..') === false){ if(OC_FILESYSTEM::fromUploadedFile($source,$target)){ - echo json_encode(array( "status" => "success")); + echo json_encode(array( "status" => "success", 'mime'=>OC_FILESYSTEM::getMimeType($target),'size'=>OC_FILESYSTEM::filesize($target))); exit(); } } |