# BatchUpload

The results of upload_media_batch.

Group: Objects.

## Fields

- `uploaded` (number, required): Files stored.
- `failed` (number, required): Files refused.
- `results` (array of objects, required): One result per manifest item, in order.
  - `file` (string or null, required): The form field name from the manifest.
  - `ok` (boolean, required): Whether this file was stored.
  - `mediaId` (string, optional): The new photo's id (media uploads).
  - `storageId` (string, optional): The stored file's id (target blob).
  - `url` (string or null, optional): The stored photo.
  - `thumbUrl` (string or null, optional): The thumbnail.
  - `ownerType` (string, optional): What the photo belongs to. One of `spot`, `product`, `collection`, `listing`.
  - `ownerId` (string, optional): The owner row's id.
  - `caption` (string or null, optional): Caption.
  - `credit` (string or null, optional): Photographer credit.
  - `order` (number, optional): Position in the owner's gallery.
  - `contentType` (string, optional): The stored file's type.
  - `width` (number, optional): Stored width in pixels.
  - `height` (number, optional): Stored height in pixels.
  - `bytes` (number, optional): Stored size in bytes.
  - `thumbBytes` (number or null, optional): The thumbnail's size in bytes.
  - `originalBytes` (number, optional): The uploaded file's size in bytes.
  - `optimized` (boolean, optional): false when the original was kept.
  - `metadataStripped` (boolean, optional): true when metadata was removed.
  - `capturedOn` (string or null, optional): Capture date.
  - `use` (string, optional): Where a storageId goes.
  - `warnings` (array of strings, optional): Notes about things the write accepted but you should look at (a plain http link). Present only when there are any.
  - `error` (object, optional): Why the file was refused.
    - `code` (string, required): The error code (see Errors).
    - `message` (string, required): What went wrong.

## Used by

- [upload_media_batch](https://developers.sceniq.earth/reference/upload_media_batch.md)
