added basic file upload functionality