Skip to content

UploadFileItem.filetype should be defined as optional #1161

Open
@PercipioDrew

Description

@PercipioDrew

When using the RNFS.uploadFiles method, there is a type definition named UploadFileItem with field filetype where the docs say...

if not defined it will get mimetype from filepath extension

However, the type defines that field as required so it must be defined. Can we please switch it to be optional? Otherwise, we have to explicitly specify the filetype.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions