In the middle of creating file upload function