fix file upload in map