Wednesday, 15 September 2010

php - Plupload set album name before upload -



php - Plupload set album name before upload -

i knew upload.php file run each uploaded file. when if there 5 files, upload.php run 5 times right?

i need insert record mysql 'album' table can albumid inserted 'photos' table.

my thought run script before upload starts.

how possible plupload? or different thought guys?

or root question, there way specify album uploaded photos?

thanks

i guess :

have client-side variable albumid, default empty bind beforeupload uploader event in beforeupload handler, see if albumid set. if not, perform synchronous ajax phone call create album , retrieve albumid, set in variable albumid still in beforeuplad handler, add together albumid in queryparameters : upldr.settings.url = upldr.settings.url + '&albumid=' + albumid

i guess should work, without having utilize kind of locking mechanism on albumid.

hope help.

php mysql plupload

No comments:

Post a Comment