(cls, value: Any)
| 273 | |
| 274 | @classmethod |
| 275 | def _file_tuple(cls, value: Any): |
| 276 | stream = value.stream |
| 277 | if hasattr(stream, "seek"): |
| 278 | stream.seek(0) |
| 279 | content = stream.read() |
| 280 | filename = getattr(value, "filename", "upload.bin") |
| 281 | content_type = getattr(value, "content_type", None) |
| 282 | return filename, content, content_type |
| 283 | |
| 284 | @classmethod |
| 285 | def _normalize_data(cls, data: Any): |
no test coverage detected