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
IFileProps
structured data can replace theFile
class instance in theFormData
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 theFormData
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 theFile
class instance directly.