Added the file upload functionality