It is not special. It is a folder. It is not a controller action. Here
is what you do:
{{url=URL(r=request,c='download',args=audio_filename)}}
<embed src="{{=url}} />
On Jan 7, 12:23 am, weheh <[email protected]> wrote:
> I want to store an audio file in the uploads folder and then have it
> played by an embed:
>
> #view
> {{url=os.path.join(request.folder,URL
> (r=request,c='uploads',f='audio',args=[audio_filename])}}
> <embed src="{{=url}} />
>
> This won't work. Why not? (If I move everything over to the static
> folder and then change 'uploads' to 'static' in the URL statement, it
> does work. But it's more logical for me to store the audio in the
> uploads folder. What's so special about uploads?)
--
You received this message because you are subscribed to the Google Groups
"web2py-users" 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.