fix(dom) add max length for storage file