The upload to the server works but the image is not properly transfered (it saves an empty image)