summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-03-13 17:24:47 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-03-28 18:03:52 +0100
commit0968eb0a65fd2e8a28bc64e881d47df3d1a209b3 (patch)
tree96ed2474c1c36e560fdfa9937ea5862eb4dc87c0 /apps
parentdf31ee5a903efb288dcb217dc13591a4efd46572 (diff)
downloadnextcloud-server-0968eb0a65fd2e8a28bc64e881d47df3d1a209b3.tar.gz
nextcloud-server-0968eb0a65fd2e8a28bc64e881d47df3d1a209b3.zip
return original filename to fileupload
Diffstat (limited to 'apps')
-rw-r--r--apps/files/ajax/upload.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php
index b9eea2fea62..e1263744e1b 100644
--- a/apps/files/ajax/upload.php
+++ b/apps/files/ajax/upload.php
@@ -71,6 +71,7 @@ if (strpos($dir, '..') === false) {
'size' => $meta['size'],
'id' => $meta['fileid'],
'name' => basename($target),
+ 'originalname'=>$files['name'][$i],
'uploadMaxFilesize' => $maxUploadFilesize,
'maxHumanFilesize' => $maxHumanFilesize
);