Okay, I've completed the Gallery administration section of my project. After thoroughly researching the available alternativs I've decided to go for integrating the SWFUpload library:
Article in the Bakery: http://bakery.cakephp.org/articles/view/swfupload-and-multipurpose-uploader A working example setup by the author of the above article James Revillini: http://james.revillini.com/2007/03/28/condiments-for-swfupload-initial-release/ The article at Pagebakery where I originally stumpled upon SWFUpload: http://www.pagebakers.nl/2006/12/19/swfupload-part-ii/ SWFUpload homepage: http://swfupload.mammon.se/ Basically, the flash movie submits all files one at a time - that means I had to set up my controller as if just one file was being uploaded. This is the best part - the SWFUpload library degrades nicely into a plain file input control if JS / Flash are not enabled. I've also integrated the phpThumb component for thumbnails generation at upload time and for adjusting orientation of pictures in the admin interface. Here's some of my Image controller: http://bin.cakephp.org/saved/20450 One thing to note: I couldn't get the upload to work using admin routes. I've set up othAuth restrictions for all admin-route actions, and it seems the flash movie request is getting a different session id. There's a nice hint for tackling this issue by poLK (http:// slun.ic.cz/) here: http://www.pagebakers.nl/2006/12/19/swfupload-part-ii#comment-4099 ... but I couldn't get it to work for me, so I used a non-admin action for this - Image::upload() I didn't have similar issues with the ajax request made for rotating the images. On Jun 2, 9:10 am, Nasko <[EMAIL PROTECTED]> wrote: > @all: > Thanks guys, I'll let you know how I tackled this :-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
