From 0968eb0a65fd2e8a28bc64e881d47df3d1a209b3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= <jfd@butonic.de>
Date: Wed, 13 Mar 2013 17:24:47 +0100
Subject: [PATCH] return original filename to fileupload

---
 apps/files/ajax/upload.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php
index b9eea2fea6..e1263744e1 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
 			);
-- 
GitLab