I’m uploading a image from Android to PHP server. But sometimes the image in the server is wrong (the image is not exactly the same, it is not complete).
How can I check that I upload the picture correctly?
I’m uploading a image from Android to PHP server. But sometimes the image in
Share
You could send the picture size along with the picture in the POST request. Then on the server side, check the received size matches the size passed as POST param and send back an error in the response if that did not match.
More costly options would also be available: