Skip to Content
Menu
This question has been flagged
3321 Rodiniai

Now I want to upload a file-like to a fileds.Binary() field as below codes:

picData = StringIO.StringIO()
plt.savefig(picData)
self.write({"file": base64.encodestring(picData.getvalue())})

shall  I rename the file which is uploaded onto  the fields.Binary()--"file" as "x.xlsx"?

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
gruod. 19
7423
0
kov. 17
3252
0
lapkr. 21
2036
5
liep. 20
9120
1
vas. 17
7383