Dear Anthony,

Big thanks. Works great.

Love and peace,

Joe

On Jan 19, 7:29 pm, Anthony <[email protected]> wrote:
> On Thursday, January 19, 2012 10:18:24 PM UTC-5, JoeCodeswell wrote:
>
> > Dear web2py folks,
>
> > I am trying to force the download of a a file named
> > 'allLists.xls.enc'. using '?attachment' after the URL.
>
> > I am getting similar errors from Firefox and Opera:  "Firefox doesn't
> > know how to open this address, because the protocol (e) isn't
> > associated with any program."
>
> > Here is the HTML source for the URL.
> > <a href="E:\web2py\applications\scramble\private\allLists.xls.enc?
> > attachment">allLists.xls.enc</a>
>
> Your href is a filesystem path rather than a URL. If you want web2py to
> serve the file, then you need a regular web2py URL, and if you want it
> served as a static file, it must be in the "static" folder. If you put the
> file in the static folder, set the URL as follows:
>
> <a href="{{=URL('static', 'allLists.xls.enc?attachment')}}">
>
> Anthony

Reply via email to