Dynamic upload folder path

22 views
Skip to first unread message

Chaitu P

unread,
Jun 30, 2015, 3:30:28 AM6/30/15
to web...@googlegroups.com

Hello all,
I have a form for student name, email and upload. For each student I want to create a seperate folder and save his upload dynamically.
Can anyone let me know how can I do this.

Thanks in advance.

Anthony

unread,
Jun 30, 2015, 2:50:47 PM6/30/15
to web...@googlegroups.com, chaitanya....@gmail.com
Are you using a database table to store the student data and uploads? If so, before creating the SQLFORM based on the table, you can dynamically set the "uploadfolder" attribute of the upload field based on the incoming email address from request.post_vars.

Anthony
Reply all
Reply to author
Forward
0 new messages