Merge pull request #13279 from owncloud/upload-original-name
Send the proper original name for uploaded files
This commit is contained in:
commit
2a03568623
|
@ -168,7 +168,7 @@ if (strpos($dir, '..') === false) {
|
|||
} else {
|
||||
$data = \OCA\Files\Helper::formatFileInfo($meta);
|
||||
$data['status'] = 'success';
|
||||
$data['originalname'] = $files['tmp_name'][$i];
|
||||
$data['originalname'] = $files['name'][$i];
|
||||
$data['uploadMaxFilesize'] = $maxUploadFileSize;
|
||||
$data['maxHumanFilesize'] = $maxHumanFileSize;
|
||||
$data['permissions'] = $meta['permissions'] & $allowedPermissions;
|
||||
|
@ -195,7 +195,7 @@ if (strpos($dir, '..') === false) {
|
|||
} else {
|
||||
$data['status'] = 'readonly';
|
||||
}
|
||||
$data['originalname'] = $files['tmp_name'][$i];
|
||||
$data['originalname'] = $files['name'][$i];
|
||||
$data['uploadMaxFilesize'] = $maxUploadFileSize;
|
||||
$data['maxHumanFilesize'] = $maxHumanFileSize;
|
||||
$data['permissions'] = $meta['permissions'] & $allowedPermissions;
|
||||
|
|
Loading…
Reference in New Issue