diff --git a/abstract/UploaderPublicApi.js b/abstract/UploaderPublicApi.js index 8de0c7d5..38f345cc 100644 --- a/abstract/UploaderPublicApi.js +++ b/abstract/UploaderPublicApi.js @@ -240,6 +240,7 @@ export class UploaderPublicApi { isRemoved: status === 'removed', errors: /** @type {import('../types/exported.js').OutputFileEntry['errors']} */ (uploadEntryData.errors), status, + source: uploadEntryData?.source, }; return /** @type {import('../types/exported.js').OutputFileEntry} */ (outputItem); diff --git a/abstract/uploadEntrySchema.js b/abstract/uploadEntrySchema.js index 79738447..e43325ab 100644 --- a/abstract/uploadEntrySchema.js +++ b/abstract/uploadEntrySchema.js @@ -27,6 +27,7 @@ import { UploadcareFile } from '@uploadcare/upload-client'; * @property {string | null} fullPath * @property {import('@uploadcare/upload-client').Metadata | null} metadata * @property {boolean} isRemoved + * @property {String} source */ /** diff --git a/blocks/FileItem/FileItem.js b/blocks/FileItem/FileItem.js index a293ee2b..114a6c3a 100644 --- a/blocks/FileItem/FileItem.js +++ b/blocks/FileItem/FileItem.js @@ -392,6 +392,7 @@ export class FileItem extends UploaderBlock { cdnUrl: entry.getValue('cdnUrl') ?? fileInfo.cdnUrl, cdnUrlModifiers: entry.getValue('cdnUrlModifiers') ?? '', uploadProgress: 100, + source: entry.getValue('source'), }); if (entry === this._entry) {