If unset, let the server assign it as it does now.
If set the attachment passed to kinto.js's collection.createRecord(..) should contain the type
|
({ __attachment__: attachment, ...record }) => { |
|
const { |
|
params: { bid, cid }, |
|
} = match; |
|
createRecord(bid, cid, record, attachment); |
If unset, let the server assign it as it does now.
If set the
attachmentpassed to kinto.js'scollection.createRecord(..)should contain the typekinto-admin/src/components/record/RecordCreate.tsx
Lines 37 to 41 in c648566