Setting max_size on the dcc.Upload component does not restrict users from selecting a file over the max_size limit.
Rather, the maxsize seems to restrict the component from triggering a callback_ (either through filename or contents inputs). This makes it very difficult to provide user feedback on the file being too large.
Expected behavior
A file over the max_size limit should not be selectable, or should still trigger the callback, perhaps with contents = None?
Bug
Setting max_size on the dcc.Upload component does not restrict users from selecting a file over the max_size limit.
Rather, the maxsize seems to restrict the component from triggering a callback_ (either through filename or contents inputs). This makes it very difficult to provide user feedback on the file being too large.
Expected behavior
A file over the max_size limit should not be selectable, or should still trigger the callback, perhaps with contents = None?