I think this may be somewhat automated more. let me look into it.
On Feb 12, 11:43 am, Wes James <[email protected]> wrote:
> ok - thx
>
> On Thu, Feb 12, 2009 at 10:42 AM, mdipierro <[email protected]> wrote:
>
> > yes. That is explained in the manual.
> > Basically you need a to store the original filename in another field
> > and set the Content-Disposition header parameter when you return the
> > file.
>
> > Massimo
>
> > On Feb 12, 11:36 am, Wes James <[email protected]> wrote:
> >> You know how filenames are changed on file upload? I have a field
> >> that retains the original filename. Is there a way when a person
> >> starts downloading a file that the download file name is set to the
> >> original name?
>
> >> For example:
>
> >> pic1.jpg is uploaded to the server and it is now
> >> table.field.uuid-uuid4.jpg (or something like that)
>
> >> now when you click on the download for that image the person gets pic1.jpg.
>
> >> -wj
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---