download URLs for FileField should end with filename not fieldname

Tom Lazar lists at tomster.org
Mon Nov 12 18:54:57 UTC 2007


ah, of course!

thanks encolpe, that was the nudge that i needed!

cheers,

tom

On Nov 12, 2007, at 4:57 PM, Encolpe Degoute wrote:

> Tom Lazar a écrit :
>> i already know how to retrieve the filename of the uploaded file, i  
>> want
>> to know how it is possible to use it in a url so that the file is
>> returned when somebody uses such an url.
>>
>> i.e. instead of
>>
>> http://nohost/plone/foo/filedata
>
> It's http://nohost/plone/foo/*at_download*/filedata
>
>> i want to be able to use http://nohost/plone/foo/bar.tgz for  
>> download.
>> also, what do you mean by 'to detect if you're using the good field'?
>
> The at_download.py script search the field where data are store then
> return. It seems to be your goal, but with filename instead of field  
> name.
>
> Regards,
> -- 
> Encolpe Degoute
> INGENIWEB (TM) - S.A.S 50000 Euros - RC B 438 725 632
> 17 rue Louise Michel - 92300 Levallois Perret - France
> web : www.ingeniweb.com - « les Services Web Ingénieux »
> Tel : 01.78.15.24.08 / Fax : 01 47 57 39 14
>
>
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> http://lists.plone.org/mailman/listinfo/product-developers
>





More information about the Product-Developers mailing list