[Sugar-devel] Browse.xo -- preserving a downloaded filename?

Bert Freudenberg bert at freudenbergs.de
Tue Jun 30 13:25:09 EDT 2009

On 30.06.2009, at 19:17, Martin Langhoff wrote:

> Using Browse.xo v101 on 8.2.x I cannot get Browse.xo to save a file
> with the name that I am requesting.
> Browse.xo seems to take the name I hint from the server (from the URL
> and using an 'content-disposition: attachment, filename="leases.sig"'
> header). But it renames it as
>  "File leases.sig downloaded from http://.. "

This is not the filename but the journal entry title. The actual  
filename is just a uuid.

That said, yes, the original filename should be preserved at least in  
the metadata (if the DS isn't actually rewritten to store files under  
their original name).

What's your use case?

- Bert -

More information about the Sugar-devel mailing list