Django Ajax Image submit
问题 I am trying to upload and save an image file using Django and respond the image itself to use in ongoing javascript functions. The problem is that the image doesn't get saved, the request.FILES is empty. When using request.body, I can see that there is not the actual file path, but a C://fakepath. Because I want the uploaded image to save immediately, I do the post using a jquery ajax call, the data is then saved creating a new Object, then the function should return a success, which it does.