Added the file upload function