Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
3325 Prikazi

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"?

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
dec. 19
7424
0
mar. 17
3255
0
nov. 21
2039
5
jul. 20
9121
1
feb. 17
7385