InputFile constructor

  1. @Deprecated('Use `InputFile.fromPath` or `InputFile.fromBytes` instead.')
InputFile({
  1. String? path,
  2. String? filename,
  3. String? contentType,
  4. List<int>? bytes,
})

Implementation

@Deprecated('Use `InputFile.fromPath` or `InputFile.fromBytes` instead.')
InputFile({this.path, this.filename, this.contentType, this.bytes}) {
  if (path == null && bytes == null) {
    throw AppwriteException('One of `path` or `bytes` is required');
  }
}