env linked to dist through env's objectId
allow upload files