Implemented basic file upload logic