aboutsummaryrefslogtreecommitdiff
path: root/actions/ajax_upload.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/ajax_upload.php')
-rw-r--r--actions/ajax_upload.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/actions/ajax_upload.php b/actions/ajax_upload.php
index 3d44df199..973e4220a 100644
--- a/actions/ajax_upload.php
+++ b/actions/ajax_upload.php
@@ -33,7 +33,8 @@ $image->setMimeType(tp_upload_get_mimetype($name));
$image->simpletype = "image";
$image->access_id = $album->access_id;
$image->title = substr($name, 0, strrpos($name, '.'));
-$image_guid = $image->save();
+$image->batch = get_input('batch');
+$result = $image->save();
$image->setOriginalFilename($name);
$image->saveImageFile($temp_file, $file_size);
@@ -43,5 +44,7 @@ $image->saveThumbnails($image_lib);
$album->prependImageList(array($image->guid));
+error_log('complete');
+
echo "1";
exit; \ No newline at end of file