src/egonomy/views.py
changeset 226 d602d53379e7
parent 224 a5db4e28a517
child 234 886cbc53b854
--- 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: