Also, see this section: 
http://web2py.com/books/default/chapter/29/03#An-image-blog

Anthony

On Thursday, December 27, 2012 9:28:31 AM UTC-5, Paolo Caruccio wrote:
>
> Following code should work
>
> {{=URL('download', args=audio.filepath)}}
>
> Please read 
> http://web2py.com/books/default/chapter/29/04#URL<http://web2py.com/books/default/chapter/29/04#URL>
>   to 
> learn more about URL mapping. 
>
>
>
> Il giorno giovedì 27 dicembre 2012 13:03:07 UTC+1, Eduardo Costa Lopes ha 
> scritto:
>>
>> Hi folks,
>>
>> I need to know how can I pass the url of an uploaded file. I'm using 
>> jquery media to play mp3 or flv files and the code looks like this:
>>
>> <a class="media" href="{{=URL('download')}}/{{=audio.filepath}}"></a>
>>
>> and the player is rendered by:
>>
>> $('a.media').media( { width: 300, height: 20 } );
>>
>>
>> The script is loaded correctly, but the href value it seems to be wrong. 
>> Any ideas?
>>
>> Thanks,
>> Eduardo Lopes.
>>
>>
>>

-- 



Reply via email to