--- a/src/egonomy/views.py Thu Jul 04 17:15:49 2013 +0200
+++ b/src/egonomy/views.py Fri Jul 05 16:30:00 2013 +0200
@@ -400,7 +400,7 @@
# 50d0574a0300000f102a5177 pigment)
# 50d0574a03000021102a5177 Gabor
files = {
- 'image0':open(png_file_path, 'rb').read(),
+ 'image0': (uid + '.png', open(png_file_path, 'rb').read()),
}
params = {
"xaction":"contents.read",
@@ -412,7 +412,7 @@
"requestfieldname":"image0"
}
# We make the request
- req = requests.post(url=settings.SENSEETIVE_API_URL, data=params, files=files, verify=False)
+ req = requests.post(url=settings.SENSEETIVE_API_URL, data=params, files=files, verify=False)#, headers=headers)
resp = req.json()
# Now that we have a response, we can remove the svg and png files
try: