Max. upload size

import panel as pn
pn.extension()

file_input = pn.widgets.FileInput(multiple=True)

def file_input_watch(event):
    print('File uploaded')

file_input.param.watch(file_input_watch,'value')

if __name__ == '__main__':
    server = pn.serve(\
                      file_input, \
                      start=False, show=False,\
                      websocket_max_message_size=10485760000,\
                      max_buffer_size=10485760000,\
                      max_body_size=10485760000,\
                      max_header_size=10485760000,\
                      port=8080,\
                      verbose=True,
                      threaded=False\
                     )

    server.run_until_shutdown()

Small files are fine. Bigger files show no reaction (i.e., the print command above is not reached) (Chrome) or the tabs crashes (FF). Multiples files exhibit the same behavior, even if they are small files.

3 Likes