The problem is that you have not uploaded files. You have the kept the original filenames for the files. That breaks lot of mechanism since from the name web2py cannot figure out which table and field reference the file and therefore it cannot check permissions, etc.
You have two options: 1) keep the files with the current names. a) change db.define_table('Song',Field('Name','string'),Field('song','upload')) into db.define_table('Song',Field('Name','string'),Field('song','string')) b) create an action def get_file(): import os path = os.path.join(request.folder,'uploads',request.args(0)) return response.stream(open(path,'wb')) and in views link them with {{=URL('get_file',args=filename)}} 2) convert files using this script ---- begin script.py ---- for item in db(db.Song.id>0).select(): path = os.path.join(request.folder,'uploads',item.song) if os.path.exists(path): stream = open(path,'wb') item.update_record(song=db.Song.song.store(stream,item.song)) ---- end --- run it ONCE with web2py.py -S yourapp -M -N -R script.py then access your files using the new name with: {{=URL('download',item.song)}} On Aug 12, 3:19 am, రాజీవ్ ఆర్ <todearraj...@gmail.com> wrote: > On Thu, Aug 12, 2010 at 1:18 PM, mdipierro <mdipie...@cs.depaul.edu> wrote: > > Please make an example of one file. > > > what is the path to the file? > > which table/field references the file? > > what is the value stored in the record for this file? > > > Massimo > > > On Aug 11, 11:34 pm, rajeev R <todearraj...@gmail.com> wrote: > > > I have some songs uploaded in a table.I have to play them but i was > > > unable to play them,then i read in the online documentation that > > > uploads folder is not directly accessible by the developer.Can anyone > > > help me how to solve this problem.Will saving the file in a different > > > folder helps. > > > > Thanks in > > > advance. > > The path of the file is /test/uploads/one.mp3(test is the name of the > application). > I need the path to play the file with "audio" tag in html5. > The table is > db.define_table('Song',Field('Name','string'),Field('song','upload')) > The file uploaded is a music file and i have to play it. > > -- > RAJEEV