mirror of
https://github.com/discourse/discourse.git
synced 2026-08-03 01:49:44 -05:00
Uppy V2 includes the S3 multipart batch presigning change we contributed in https://github.com/transloadit/uppy/commit/d613b849a6591083f8a0968aa8d66537e231bbcd so we need to upgrade it. This also brings both package.json files into line and accounts for the renaming of Plugin to BasePlugin in Uppy. This has been tested and is working locally for both regular Ember and Ember CLI, for uploads.json XHR uploads and for direct S3 uploads (single and multipart).
12 lines
548 B
JavaScript
12 lines
548 B
JavaScript
// We need a custom build of Uppy because we do not use webpack for
|
|
// our JS modules/build. The only way to get what you want from Uppy
|
|
// is to use the webpack modules or to include the entire Uppy project
|
|
// including all plugins in a single JS file. This way we can just
|
|
// use the plugins we actually want.
|
|
window.Uppy = {}
|
|
Uppy.Core = require('@uppy/core')
|
|
Uppy.XHRUpload = require('@uppy/xhr-upload')
|
|
Uppy.AwsS3 = require('@uppy/aws-s3')
|
|
Uppy.AwsS3Multipart = require('@uppy/aws-s3-multipart')
|
|
Uppy.DropTarget = require('@uppy/drop-target')
|