I've been trying to incorporate this code into a website I'm working on. I'm not sure if I've encountered a bug or if I'm doing something wrong though. I've been able to incorporate the files fine and I can select a image from my computer. If I submit the page at that point, everything seems to work as expected.
However, if I select and file and then rotate it say counter clockwise, the image is not sent to the server. I've done a print_r on the $_FILES array to see what is posted and the array is completely empty. In the case where I don't modify the image above, I do see the original and new image in the $_FILES array.
In terms of my environment, I'm using PHP and IE11.