http://lists.apple.com/archives/webobjects-dev/2011/Aug/msg00143.html
Your pattern with the image as an intermediate object is the one I use. There is an example screencast using ERAttachment I did with D2W some time back. Check the wiki. Sent from my iPad On 2012-07-05, at 9:43 AM, Amy Worrall <[email protected]> wrote: > Hi! Sorry to ask two questions in one day. (It's quite exciting, I'm > possibly going to be able to use WO in a client project, so I'm > currently trying to do various proof of concept bits to make sure I'm > capable of it.) > > I was wondering if anyone had used ERAttachment with Direct to Web. > I'd be looking to allow multiple user-uploaded images for each Recipe > object, preferably displaying them as thumbnails, and with the option > to upload a new one, delete existing ones, or download full size > images. > > It seems from the ERAttachment docs that I can make myself a > relationship between my Recipe entity and the ERAttachment entity. Can > I make that a many-to-many relationship? (I don't actually want an > attachment to be associatable with more than one recipe, but I also > don't want to change the ERAttachment model schema.) Or should I make > a new entity RecipeImage to sit in the middle, and one RecipeImage has > one ERAttachment? > > Has anyone had any experience putting the attachment viewing and > uploading components into a Direct to Web page? I found this old > thread (http://comments.gmane.org/gmane.comp.web.webobjects.wonder-disc/6198) > where someone tried it and gave up. I was wondering if anyone else had > tried since? > > Thanks again for all your help. You guys are all awesome! > > Amy > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com > > This email sent to [email protected] _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
