Document why key
comes first
This commit is contained in:
parent
0810ea6909
commit
710701d0fc
1 changed files with 1 additions and 1 deletions
|
@ -26,8 +26,8 @@ exports.upload = async (content) => {
|
|||
const { fields, url } = signedForm.body;
|
||||
|
||||
const form = new FormData();
|
||||
// The API expects `key` to be the first field:
|
||||
form.append('key', fields.key);
|
||||
|
||||
Object.entries(fields)
|
||||
.filter(([key]) => key !== 'key')
|
||||
.forEach(([key, value]) => {
|
||||
|
|
Loading…
Reference in a new issue