On Thu, Mar 3, 2011 at 9:52 AM, Foroct <forrestfraz...@gmail.com> wrote: > I have a site where a user can upload some text and an image. The > image processing is being handled using the Media Plugin by David > Persson. When a user submits a form with an image attached the image > gets crunched to multiple sizes and put in the correct folder. > > For my iphone app I have a similar process. The user fills out a form > but due to some constraints the form data upload is a multi step > process. First the image is sent (via xhr) and stored on my server, > the file name is returned to the app then the text is sent back to my > site as a JSON file and a new record is created in my database. > > This is all working however I would like to use the Media Plugin to > crunch my image upload from the iphone app. > I cant seem to find any information on how to do this, has anyone done > it before or does anyone know a way to make it happen? Basically is > there a way to invoke the Media Plugin without first going through a > form in a view?
It doesn't need to go through a Cake form, just post it to a URL handled by a controller implementing the uploader, and make sure whatever form you do use formats the data the same way you normally would have. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php