REF: file upload not working when form is rendered using LOAD() or component=()

9 views
Skip to first unread message

Teddy Nyambe

unread,
Apr 25, 2013, 6:23:59 AM4/25/13
to web2py
I am having a nightmare getting file upload to work when the form is loaded using LOAD or component=(URL, tarrget=div). The file fails to be uploaded but the record is added to the DB without the file record. It does also not appear in the upload folder


--
.......................................................................................
Teddy Lubasi Nyambe
Opensource Zambia
Lusaka, ZAMBIA

Cell: +260 97 7760473
website: http://www.opensource.org.zm

~/
Human Knowledge belongs to the world! - AntiTrust

Man is a tool-using animal. Without tools he is nothing, with tools he is all - Thomas Carlyle 1795-1881

/~

Leonel Câmara

unread,
Apr 25, 2013, 7:19:14 AM4/25/13
to web...@googlegroups.com
You need to use some ajax file upload mechanism.

Here's an example:

If you follow that example, I recommend you put the javascript directly on the webpages that will use it so you don't have to deal with versions of web2py_ajax_page, etc. that are different from the regular web2py ones elsewhere.

Teddy Nyambe

unread,
Apr 25, 2013, 9:16:15 AM4/25/13
to web2py
This is not cool, its giving me a weird behaviour and its not even working. 


--
 
---
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages