Skip to content

Add ability to specify the uploaded file content-type #3367

@leplatrem

Description

@leplatrem

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);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions