Improvement new file logic.
Fix base url.