Added uploading file function