aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/photos_add_direct_process.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-08-19 16:04:43 +0000
committerplegall <plg@piwigo.org>2011-08-19 16:04:43 +0000
commit24ab1e2467a178817735b9049e4a8a6612e13d41 (patch)
tree06977835881e5dbb82c72626c612873fa3d64607 /admin/include/photos_add_direct_process.inc.php
parent50cb55c65690f15b5bbc375af0b2bfa87400083d (diff)
feature 2410 added: uploadify upgraded from version 2.1.0 to 3.0.0 (still beta,
but said as stable by users on uploadify forums) bug 2411 fixed: thanks to uploadify 3.0.0, the "Browse" button is now localized (text in any language) bug 1653 fixed: if the selected file exceeds the upload_max_size (as defined in the php.ini), an alert is shown and the file is not added to the queue. bug 2412 fixed: ability to select GIF files with the Flash Uploader. git-svn-id: http://piwigo.org/svn/trunk@11975 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/photos_add_direct_process.inc.php')
-rw-r--r--admin/include/photos_add_direct_process.inc.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/admin/include/photos_add_direct_process.inc.php b/admin/include/photos_add_direct_process.inc.php
index 15c7abebb..c0cb3e4c0 100644
--- a/admin/include/photos_add_direct_process.inc.php
+++ b/admin/include/photos_add_direct_process.inc.php
@@ -42,9 +42,19 @@ if (isset($_GET['processed']))
)
);
}
-
- $category_id = $_POST['category'];
+ else
+ {
+ $category_id = $_POST['category'];
+ }
+ if (isset($_POST['onUploadError']) and is_array($_POST['onUploadError']) and count($_POST['onUploadError']) > 0)
+ {
+ foreach ($_POST['onUploadError'] as $error)
+ {
+ array_push($page['errors'], $error);
+ }
+ }
+
$image_ids = array();
if (isset($_FILES) and !empty($_FILES['image_upload']))