Changes between Initial Version and Version 1 of Ticket #34674, comment 5
- Timestamp:
- Jun 23, 2023, 3:19:56 PM (17 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34674, comment 5
initial v1 1 1 In the unlikely case it's not a bug, it's certainly undefined behaviour and maybe this should be documented somewhere. 2 2 3 So far, I've heard ZERO explanation why the reading the contents of newly uploaded file works without a problem, but writing gives this bizar error. 3 So far, I've heard ZERO explanation why the reading the contents of newly uploaded file works without a problem, but writing gives this bizar error. IMHO there is a bug in FieldFile when you try to call `open` with mode `wb` on newly uploaded files. 4 4 5 If mode `wb` is not supported for INSERTS, and only for UPDATES, it should be documented somewhere. 6 7 No matter how you put it, mode `wb` does not work, and it could easily be verified if someone took 1 minute to actually run my example code. 8