Re: multi image uploader
@Xeeton - Thank you. I had seen fileHandler component that Chris Partridge developed. It looks promising. I liked the idea up loading the files into the database though, and Daniel's implementation was so simple for a single file. If there is a way to adopt Daniel's script for use with multiple images, that would be my preference. I may have to resort to loading the files to a directory though. I've never done any image scaling programmatically before. I can see how this would be easier on the user though. How challenging of a task would this be? I am a beginner to MVC and CakePHP, but an experienced PHP developer. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: multi image uploader
I see two possible solutions: 1. Use different models for your files. 2. Extract in a loop the data from the $this-params['form'] array and create an array with the following structure: [Model] = Array ( [name] = [type] = [tmp_name] = [error] = [size] = ) With this array you can do the other things you do in your add() function. HTH -- Daniel Hofstetter http://cakebaker.wordpress.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: multi image uploader
@Daniel - Are either on of those solutions better than trying to implement image resizing programmatically in your opinion? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: multi image uploader
I got it working by reorganizing the array like you suggested. I also needed to add... $this-File-create(); ...just before saving each image in order to do an insert on each one. Otherwise, every save() after the first one just overwrites the first one. It is likely that I will redo this at some point and resize the images programmatically, but for now this will work. Thanks again for you help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---