Thank you all for your replies,
This works :
table.image.uploadfolder = '/home/webapps/uploads'
to upload the images into separate folders I made the following adjustment:
folder = 'vertexID' + str(vertexID)
table.image.uploadfolder = os.path.join('/home/webapps/uploads/' + folder)
The problem is the image file doesn't display in the form:
form = SQLFORM(table, record, deletable=True, showid=False,
upload=URL('home', 'webapps', 'uploads/' + folder,
args=request.vars.image))
This buils the following source:
scr="/home/webapps/uploads/vertexID1/img_logo.image.bbaf6c..6e67.png"
Why doesn't the image file display in the form?
Also when I check the check to delete checkbox and submit the form the image
file isn't deleted.
Kind regards,
Annet
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.