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.
Properties of a file.
In the React Native, this
IFilePropsstructured data can replace theFileclass instance in theFormDatarequest.Just put the URI address of the local file system with the file's name and type. It would be casted to the
Fileclass instance automatically in theFormDatarequest.Note that, this
IFilePropstype works only in the React Native environment. If you are developing a Web or NodeJS application, you have to utilize theFileclass instance directly.