fix filebase resetting after uploading file in tag