Adding photos via Gallery2 API to gallery embeded with Drupal
|Posted: Thu, 2007-09-06 15:13|
I'm writing script for import photos from flickr. It recieves flickr photo id via ajax and uploads photo to gallery. I have problems with adding photo to DB. I'm initializing gallery via GalleryEmbed::init($params), $gallery object created succesfuly, all required fields are filled. Then I get photo from flickr, upoad it to server (tmp file are really created). Further code below:
$lock = GalleryCoreApi::acquireWriteLock($newItem->getId());
galleryPhotoItem object is printed with all required fields - id, owner, parentId etc. There no error messages in $ret. But there any data are stored to DB May be problem is in save() method, but script doesn't terminates... Help me resolving this problem plz...