file uploads

113 views
Skip to first unread message

Wes James

unread,
Nov 4, 2008, 3:41:46 PM11/4/08
to web...@googlegroups.com
Also, students will need to upload a text or word doc for extra
information for their scholarship application. I noticed that web2py
has some file upload pieces. Does the data go in to the database or
on to the file system? Do I put a pointer in the db to the filename
if it is on the file system?

thx,

-wj

mdipierro

unread,
Nov 4, 2008, 3:46:54 PM11/4/08
to web2py Web Framework
If you have SQLField('doc','upload') than doc goes in the uploads
folder and the name (renamed) in the field.

If you have SQLField('doc','upload',uploadfield='doc_data') and
SQLField('doc_data','blob',default='') then the uploaded file goes in
the database.

Massimo

Wes James

unread,
Nov 4, 2008, 3:48:59 PM11/4/08
to web...@googlegroups.com
On Tue, Nov 4, 2008 at 1:46 PM, mdipierro <mdip...@cs.depaul.edu> wrote:
>
> If you have SQLField('doc','upload') than doc goes in the uploads
> folder and the name (renamed) in the field.
>
> If you have SQLField('doc','upload',uploadfield='doc_data') and
> SQLField('doc_data','blob',default='') then the uploaded file goes in
> the database.

Massimo, thx. I'll try one of those.

-wj

BearXu

unread,
Nov 4, 2008, 4:16:14 PM11/4/08
to web...@googlegroups.com
Will Web2py has multiple files uploading function inbox?

2008/11/4 Wes James <comp...@gmail.com>

mdipierro

unread,
Nov 4, 2008, 4:22:00 PM11/4/08
to web2py Web Framework
I do not understand the question.

On Nov 4, 3:16 pm, BearXu <bearx...@gmail.com> wrote:
> Will Web2py has multiple files uploading function inbox?
>
> 2008/11/4 Wes James <compte...@gmail.com>

BearXu

unread,
Nov 4, 2008, 4:35:53 PM11/4/08
to web...@googlegroups.com
I mean can I choose more than one file and then click upload once?

Do I need to design the form for myself?

2008/11/4 mdipierro <mdip...@cs.depaul.edu>

Kyle Smith

unread,
Nov 4, 2008, 4:43:08 PM11/4/08
to web...@googlegroups.com
You'll need to do this yourself. Check out the jquery multi file upload plugin.

http://www.fyneworks.com/jquery/multiple-file-upload/

Kyle

BearXu

unread,
Nov 4, 2008, 4:49:20 PM11/4/08
to web...@googlegroups.com
Thanks for your suggestion.
I mean will web2py support this function in the future?

2008/11/4 Kyle Smith <kylet...@gmail.com>

BearXu

unread,
Nov 4, 2008, 4:54:31 PM11/4/08
to web...@googlegroups.com
maybe one day web2py will include the sqldesigner too:)

2008/11/4 BearXu <bear...@gmail.com>
Reply all
Reply to author
Forward
0 new messages