Changes between Initial Version and Version 1 of Ticket #34674, comment 5


Ignore:
Timestamp:
Jun 23, 2023, 3:19:56 PM (11 months ago)
Author:
Jeroen Jacobs

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34674, comment 5

    initial v1  
    11In the unlikely case it's not a bug, it's certainly undefined behaviour and maybe this should be documented somewhere.
    22
    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.
     3So 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.
    44
     5If mode `wb` is not supported for INSERTS, and only for UPDATES, it should be documented somewhere.
     6
     7No 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
Back to Top