mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-20 16:53:33 +00:00
With this patch you can do
```js
uppy.use(XHRUpload, {
headers: file => ({
'authorization': `bearer ${global.userToken}`,
'header-name': file.meta.someMetaValue
})
})
```
to determine file-specific headers.
The function syntax for `headers` is only available if the `bundle`
option is `false` (the default). `bundle` uploads only use one set of
headers.
|
||
|---|---|---|
| .. | ||
| @uppy | ||
| uppy | ||