aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/ws_functions.inc.php2
-rw-r--r--ws.php1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php
index f94a386a0..edd6296b2 100644
--- a/include/ws_functions.inc.php
+++ b/include/ws_functions.inc.php
@@ -1244,7 +1244,7 @@ SELECT
// database registration
$insert = array(
- 'file' => $filename_wo_ext.'.jpg',
+ 'file' => !empty($params['original_filename']) ? $params['original_filename'] : $filename_wo_ext.'.jpg',
'date_available' => $dbnow,
'tn_ext' => 'jpg',
'name' => $params['name'],
diff --git a/ws.php b/ws.php
index cb2d4bc43..702ff769a 100644
--- a/ws.php
+++ b/ws.php
@@ -204,6 +204,7 @@ function ws_addDefaultMethods( $arr )
'thumbnail_sum' => array(),
'high_sum' => array('default' => null),
'original_sum' => array(),
+ 'original_filename' => array('default' => null),
'name' => array('default' => null),
'author' => array('default' => null),
'date_creation' => array('default' => null),