diff options
author | Cash Costello <cash.costello@gmail.com> | 2010-10-25 00:22:20 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2010-10-25 00:22:20 +0000 |
commit | 893364a28955358ad259bfb75798560616ab3d49 (patch) | |
tree | 8b2ac2fb618596fed82b12c221eb7c485cbb9590 /actions/ajax_upload.php | |
parent | da1493b95a2f0b5000a487ae373c9318c58d0b2d (diff) | |
download | elgg-893364a28955358ad259bfb75798560616ab3d49.tar.gz elgg-893364a28955358ad259bfb75798560616ab3d49.tar.bz2 |
supporting both basic and flash uploader
Diffstat (limited to 'actions/ajax_upload.php')
-rw-r--r-- | actions/ajax_upload.php | 5 |
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 |