// A file already in the account's Object Storage: nothing is uploaded again.
await brand.assets.add({ cloud: "Brand/storefront.jpg", role: "hero" });
// Or bytes, like a logo.
await brand.assets.add({ name: "team.jpg", content: bytes, role: "team", description: "The roasting team" });
brand.assets.last; // the resource just added, with its url
brand.assets.lastCredits; // what its description cost
brand.assets.byRole("hero");# A file already in the account's Object Storage: nothing is uploaded again.
brand.assets.add({"cloud": "Brand/storefront.jpg", "role": "hero"})
# Or bytes, like a logo.
brand.assets.add({"name": "team.jpg", "content": image_bytes, "role": "team", "description": "The roasting team"})
brand.assets.last # the resource just added, with its url
brand.assets.last_credits # what its description cost
brand.assets.by_role("hero")Roles
hero, place, interior, product, team, work, detail, texture u other.
Una foto sin descripción se describe
Un modelo la escribe, por alrededor de un crédito, para que un agente o una página elija la imagen correcta sin verla. Indique description usted mismo, o describe: false, y no se gasta nada. El mismo archivo añadido dos veces se reutiliza: lastReused lo indica.