file uploading with flex

0 views
Skip to first unread message

hosonno

unread,
Dec 22, 2009, 5:12:29 AM12/22/09
to TurboGears
hi everybody
i just started using turbogears 1.0.8
i have some problemes in uploading file using flex front end
i didn't find a way to make turbogears work with objectfilereference
( the type returned by flex when using upload methode.
can anybody help me to find a documentation about this

hosonno

unread,
Dec 22, 2009, 10:30:49 AM12/22/09
to TurboGears
problem solved
i find that flex send the file in a dict


fileref.upload(request,"file",false)
to find it in turbogears you have just to put

f=kw["file"]
data=f.read()

Reply all
Reply to author
Forward
0 new messages