Oh, and turning off validation and just accessing the input makes it work, that part of the code is then run only once:
1 {'_unicode': False, 'myfile': {}} -> ['myfile'] 992166 2 {'_unicode': False, 'myfile': {}} -> ['myfile'] 992166
(the debug is printing the defaults dict and the size of the upload)
Oh, and turning off validation and just accessing the input makes it work, that part of the code is then run only once:
1 {'_unicode': False, 'myfile': {}} -> ['myfile'] 992166
2 {'_unicode': False, 'myfile': {}} -> ['myfile'] 992166
(the debug is printing the defaults dict and the size of the upload)