> Sorry this is not clear.
>
> If you are browsing my site (not using the phone app) and you add data
> and a photo via a form field then the image is being handled by the
> media plugin. However when adding data and a photo via the iphone app
> I am not currently handling the photo upload via the media plugin.
> Right now I am using the code I posted above which receives the photo,
> places it in a folder and returns the filename. I am trying to figure
> out how to use the plugin when submitting an image from the phone
> app.
OK, that makes sense. Like I said, though, the form for the iPhone
version could post in the same fashion as the regular version. What's
keeping you from using MediaPlugin in your app_photo() action?
Also, you might consider sending back the Image.id, along with the
name, in the return to your app. Instead of using echo, create a JSON
object and send that back. Then add the id to a hidden field so it's
propagated through the various submission stages.
--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment