Hello everyone,
                     I am creating a file named hello_world.py somehow and 
storing that file in location some_dir/web2py/application/uploads/scripts. 
I want to give option to user to download that file.

Technique i am using is:
    I created a table with a filed having type upload as:
db.define_table('scripts',
    Field('s', 
'upload',uploadfolder='/var/www/web2py/applications/uploads/scripts'),

and i am storing the file path 
/var/www/web2py/applications/upload/scripts/hello_world.py 
in field 's'.

By doing this there is an entry in database, but when i am clicking on 
field 's' of table i am getting error '404 file not found'.

Can somebody help me with this or suggest me better option to solve the 
problem.




-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to