API / @aionbuilders/nabu

REASON_CODES

Constant Stability: stable

The stable codes of FileReason.

Declaration

TypeScript
import { REASON_CODES } from '@aionbuilders/nabu';
TypeScript
const REASON_CODES: Readonly<{
    cancelled: 'The upload was cancelled.';
    corrupt: 'The file does not match its fingerprint and was ignored.';
    interrupted: 'The upload was interrupted before it finished: the file is not available on this device.';
    'not-embedded': 'The file was not included in the copy (too large or not loaded yet).';
    'too-large': 'The file is too large.';
    unavailable: 'The file is not available.';
    'upload-failed': 'The upload failed.';
  }>

Properties

Properties of REASON_CODES
PropertyTypeDescription
cancelled'The upload was cancelled.'n/a
corrupt'The file does not match its fingerprint and was ignored.'n/a
interrupted'The upload was interrupted before it finished: the file is not available on this device.'n/a
not-embedded'The file was not included in the copy (too large or not loaded yet).'n/a
too-large'The file is too large.'n/a
unavailable'The file is not available.'n/a
upload-failed'The upload failed.'n/a

Source: src/lib/files/status.js:28