[Seaside] Re: Uploading an Image

Philippe Marschall philippe.marschall at gmail.com
Fri Apr 20 16:38:02 UTC 2007


Right, FileLibrary is not one size fits all. It was created with Pier
and the Scriptaculous demo in mind. It's biggest advantage is that it
packs code together with resources (enables Monticello to version
files).  It's biggest disadvantage is that it's not suited for large
binary files.

If you can use Apache to serve stuff, by all means do it. If you're
too lazy to set up Apache and rewrite rules, you might want to have a
look at file library.

Cheers
Philippe

2007/4/20, Peter Osburg <peter.osburg at gmail.com>:
>
> well just to give another suggestion:
> i don't feel well with adding all needed pictures to the image
> especially when creating a webproject and using hundreds of several
>
> pictures. therefore i would advice to use a static folder on your
> webspace and referencing to the images just by using the url.
>
> think of seasidehosting.st! they provide you with a folder for your image
> and
>
> also an resources folder for all the static stuff. you also do very well
> with
> that solution.
>
> regards
> Peter
>
> Michel Bany schrieb:
>
>
>
> >
> > On 20 Apr 2007, at 12:37 , John Thornborrow wrote:
> >
>
> >> dirk newbold wrote:
>
> >>> Sorry,
>
> >>>
> >>> Just to display an image in a webpage originally generated by a html
> >>> file but now in Seaside (renderContentOn: html).
>
> >>>
> >>> e.g. the image is located at:
> >>> c:\Program Files\Cincom\vw7.4.1nc\web\examples
>
> >>>
> >>> With html and having the image located in the same dir as the html
> >>>
> file I used:
> >>> <img src="memberMail.gif" alt="Email Member"/>
> >>> Which displayed the image in web page generated by that html file.
>
> >>>
>
> >
> > This should work
> >
>
> > html image url: '../memberMail.gif'
> >
> > Note that this only works because you placed your image in this
>
> > specific directory.
> > In any event, John's suggestion (i.e. keeping your app graphics in
> > your VW image) is probably the most appropriate.
>
> > Enjoy,
> > Michel.
> >
> >
>
> >
>
> >> Hi,
> >>
> >> I recently learned about this myself - have a look at the WAFileLibrary
>
> >> class, and the example class WAFileLibraryDemo and WAFileLibraryExample.
> >>
> >>
> HTH,
> >> John.
> >>
>
> >
> > _______________________________________________
> > Seaside mailing list
>
> > Seaside at lists.squeakfoundation.org
> >
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
>
>
>
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>


More information about the seaside mailing list