extract fileupload base