Re: help with ERAttachments
Re: help with ERAttachments
- Subject: Re: help with ERAttachments
- From: Theodore Petrosky <email@hidden>
- Date: Fri, 15 Oct 2010 05:13:18 -0700 (PDT)
Thank you. this is perfect. (almost) of course I use only postgresql and there are differences. like I had to factor out of the migration0 anything dealing with the erattachment table and create a second migration with:
public class Tutorial1 extends ERAttachmentMigration {
public Tutorial1() {
super("person", "erattachmentid", true);
}
}
and of course postgresql wants to fold all table/entities to lowercase.
now I can work backwards and understand what is happening.
Questions:
I see you set in the properties:
er.attachment.Person.photo.tempFolder = /tmp
er.attachment.Person.photo.maxSize = 2097152
er.attachment.Person.photo.storageType = file
er.attachment.Person.photo.file.overwrite = false
er.attachment.Person.photo.file.filesystemPath = /tmp/erattachment
In the development mode, where is this location. (I can not find the attachment folder)
In deployment, where is webobjects expecting this to live?
Thank you for this wonderful example.
Ted
--- On Thu, 10/14/10, David Holt <email@hidden> wrote:
> From: David Holt <email@hidden>
> Subject: Re: help with ERAttachments
> To: "Theodore Petrosky" <email@hidden>
> Cc: email@hidden
> Date: Thursday, October 14, 2010, 9:06 PM
> I've uploaded a small demo project
> here
>
> http://wiki.objectstyle.org/confluence/display/WONDER/ERAttachment+Framework
>
> There is a screencast to go with it once I figure out where
> to put it :-)
>
> d
>
> On 2010-10-14, at 8:54 AM, Theodore Petrosky wrote:
>
> > Does anyone have an example of using ERAttachments?
> >
> > I am not using D2W and I just can not figure it out
> from the Practical Wonder podcast.
> >
> > I want to save the attachments to file and then view
> them. That's all.
> >
> > simple little app. but some help would really be
> appreciated.
> >
> > Ted
> >
> >
> >
> > _______________________________________________
> > Do not post admin requests to the list. They will be
> ignored.
> > Webobjects-dev mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
> > This email sent to email@hidden
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden