I have a table with upload field defined as follows: Field('file', 
'upload', uploadseparate=True) . When I create some items using database 
administration, the image is displayed correctly. When I involve 
SQLFORM.grid in my controller, the link to file is not correct. See two 
links below:

OK - this URL is produced by database administration interface
http://localhost:8000/periodicke_cinnosti/appadmin/download/db/item.file.8f5a1d4f8f222113.6e61747572616c6c5f30332e706e67.png

BAD - this URL is produced by SQLFORM.grid
http://localhost:8000/periodicke_cinnosti/default/form/download/item.file.8f5a1d4f8f222113.6e61747572616c6c5f30332e706e67.png

The difference is  'db' just after '/download/' in path. I'm running latest 
web2py trunk version.

-- 

--- 
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/groups/opt_out.


Reply via email to