Properties of a file.

In the React Native, this IFileProps structured data can replace the File class instance in the FormData request.

Just put the URI address of the local file system with the file's name and type. It would be casted to the File class instance automatically in the FormData request.

Note that, this IFileProps type works only in the React Native environment. If you are developing a Web or NodeJS application, you have to utilize the File class instance directly.

interface IFileProps {
    name: string;
    type: string;
    uri: string;
}

Properties

Properties

name: string

Name of the file.

type: string

Content type of the file.

uri: string

URI address of the file.

In the React Native, the URI address in the local file system can replace the File class instance. If

uri