Added file uploading functionality