It looks like you're new here. If you want to get involved, click one of these buttons!
@expose()
def upload(self, **kw):
h = open(\".\"+kw[\"folder\"]+\"/\"+kw[\"Filename\"], \"wb\")
while 1:
data = kw[\"Filedata\"].file.read(4096)
if not data:
break
h.write(data)
h.close()