Hi
I would like to create subfolders for uploading documents as per name
provided by user. Example
dict_doc_type = ["Java", "J2EE", "Python"]
db.define_table('document',
Field('document_type', type='string', label=T('Document
Type'), default="M", requires=IS_IN_SET(dict_doc_type)),
Field('doc_filename', type='string', readable=False,
writable=False),
Field('doc', type='upload', label=T('Upload File'),
uploadseparate=True))
Now 'doc' field value should be same as what was selected in 'doc_type'
fieled while submitting the form. That is when user fills online form, he
will select a category and that value will be used as parent for storing
uploaded file.
Thanks in advance
--
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.