made the upload file option visible only for students
fixed uploading a file in images.js