Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@uppy/tus, @uppy/xhr-upload, @uppy/aws-s3: metaFields -> allowedMetaFields #4023

Merged
merged 8 commits into from Aug 22, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/@uppy/aws-s3/src/index.js
Expand Up @@ -122,6 +122,10 @@ export default class AwsS3 extends BasePlugin {

this.opts = { ...defaultOptions, ...opts }

if ('metaFields' in opts) {
Murderlon marked this conversation as resolved.
Show resolved Hide resolved
Murderlon marked this conversation as resolved.
Show resolved Hide resolved
throw new Error('The `metaFields` option has been renamed to `allowedMetaFields`.')
}

// TODO: remove i18n once we can depend on XHRUpload instead of MiniXHRUpload
this.i18nInit()

Expand Down
4 changes: 4 additions & 0 deletions packages/@uppy/tus/src/index.js
Expand Up @@ -81,6 +81,10 @@ export default class Tus extends BasePlugin {
/** @type {import("..").TusOptions} */
this.opts = { ...defaultOptions, ...opts }

if ('metaFields' in opts) {
Murderlon marked this conversation as resolved.
Show resolved Hide resolved
throw new Error('The `metaFields` option has been renamed to `allowedMetaFields`.')
}

if ('autoRetry' in opts) {
throw new Error('The `autoRetry` option was deprecated and has been removed.')
}
Expand Down
4 changes: 4 additions & 0 deletions packages/@uppy/xhr-upload/src/index.js
Expand Up @@ -124,6 +124,10 @@ export default class XHRUpload extends BasePlugin {
throw new Error('`opts.formData` must be true when `opts.bundle` is enabled.')
}

if ('metaFields' in opts) {
Murderlon marked this conversation as resolved.
Show resolved Hide resolved
throw new Error('The `metaFields` option has been renamed to `allowedMetaFields`.')
}

this.uploaderEvents = Object.create(null)
}

Expand Down