[Seaside] Making a download page
watchlala at hotmail.com
Tue Mar 8 20:59:28 UTC 2011
Then the web server would be serving them directly (nginx, apache, etc.), right?
I'm interested in this, too. I was gonna be looking at doing something similar to Dropbox or Base Camp.
Date: Tue, 8 Mar 2011 22:19:53 +0200
Subject: Re: [Seaside] Making a download page
From: avishefi at gmail.com
To: seaside at lists.squeakfoundation.org
There are several options to this.
- Upload all files to the file library in advance, and display them to the user. The FileLibrary also provides mechanism for loading new files, so there should be no problem to update it.
- Load files from the filesystem into the filelibrary (using WAFileLibrary>>#addFile, or WAFileLibrary class >>#addFileAt: / addAllFilesIn: ).
- There's a new option on Seaside 3.0.4 which allows you to specify a configuration value for file handlers that determines the base url of a file library. This way, your absolute urls would be: <base-url>/<file-library-name>/<file-name>
You can also refer to files directly on the filesystem, which doesn't require any FileLibrary support.
On Tue, Mar 8, 2011 at 9:02 PM, Ricardo Jacas <ricardo.jacas at gmail.com> wrote:
Hi, i'm trying to make a simple downloading function from files
already in the server.
I was using the book's example but i cant make it work, because the
example already has the file in a variable, and i need to refer a file
in the system.
anyone got a simple solution?
Thanks beforehand for any help on this :)
lets reign all together
seaside mailing list
seaside at lists.squeakfoundation.org
_______________________________________________ seaside mailing list seaside at lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside