Open amdstorm opened 12 years ago
I am not sure if parse.com has updated the API since you developed it. I had an authorization problem when using the code.
what i did to fix was to change the authorization
request.add_header("X-Parse-Application-Id", APPLICATION_ID) request.add_header("X-Parse-REST-API-Key", MASTER_KEY
I added ParseFile class to handle fileuploading
frontImage = ParsePy.ParseFile("image",image_location,'image/jpg') frontImage.save() product = ParsePy.ParseObject("Product") product.front_image = {"name": frontImage.name(), "__type": "File"}
I have a similar change to the authorization in my own pull request. I hope you take either!
I am not sure if parse.com has updated the API since you developed it. I had an authorization problem when using the code.
what i did to fix was to change the authorization
I added ParseFile class to handle fileuploading