Hi all, I have a upload javascript in my app tha call a function in my 
controller to upload files. 

It was working fine until now, so I update my web2py to latest version and 
now I get te error:  "not indexable" in my upload function.

Well, my functions is:

def upload_callback():
    if 'qqfile' in request.vars:
        filename = request.vars.qqfile
        newfilename = db.realty_photos.photo.store(request.body, filename)
        db.realty_photos.insert(photo=newfilename,realty_id=request.args(0))
    return response.json({'success': 'true'})


And I sed to it a url like it:

/upload_callback/5?qqfile=1.png

It works fine in my old version 2.5.1, but not now.

All help is welcome!

Thanks for all.





















-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to