I'm integrating plupload into web2py but having issues getting the
manual upload to work with the store method.

I have the filename of the original file in request.vars.name and the
file stream data in request.vars.file

I've tried these options and have no luck:

db.images.insert(file=db.images.file.store(request.vars.file) )
db.images.insert(file=db.images.file.store(request.vars.file,request.vars.name) 
)

In both cases I get an error of "Attribute read".  This is probably
because the data is raw and not really a file, but how do I make that
compatible?  If I print request.vars.file its a bunch of gibberish
characters, like you would expect for a serialized image.

Any ideas?

Nick

Reply via email to