Directus API et image : question de content-type

tu peux aussi faire une requête sur directus_files. Depuis la dernière mise à jour DirectusFile fonctionne comme les autres collections. Tu obtiendras les informations de base.

  String? get title => getValue(forKey: "title");
  String? get type => getValue(forKey: "type");
  DateTime? get uploadedOn => getOptionalDateTime(forKey: "uploaded_on");
  int? get fileSize => getValue(forKey: "filesize");
  int? get width => getValue(forKey: "width");
  int? get height => getValue(forKey: "height");
  int? get duration => getValue(forKey: "duration");
  String? get description => getValue(forKey: "description");
  Map<String, dynamic>? get metadata => getValue(forKey: "metadata");