Adds mime type verification, error messaging, updates upload modal to show spinner while uploading.