Your code will form part of a larger website, and so dropzone and jcrop are mandatory, as is the version of bootstrap.
The Dropzone needs to be configured to accept jpg and png files up to 2 Mb, and only 1 at a time. Prior to the file being uploaded to the server, the user should then crop the image to a fixed dimension being a ratio of 4 to 5 - 4 width, 5 height. The user should be able to adjust the size of the cropped image, but not change the shape (i.e. dimensions).
Having completed cropping the image, both the original image AND the cropped image need to be posted to the server.
Please ignore the attachment upload.php - instead refer to the attachment upload.zip