Add filetype to file name
Fix js for dropzone in the avatar jsp