From 893364a28955358ad259bfb75798560616ab3d49 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Mon, 25 Oct 2010 00:22:20 +0000 Subject: supporting both basic and flash uploader --- actions/ajax_upload.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'actions/ajax_upload.php') 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 -- cgit v1.2.3