Hello,
Following advice from @carl, I tried out his advice with a combination of this post in forum and it worked. It loads all information of big files (I only tried in my personal case up to 56 MB) without problem.
My workaround based on previous forum post would look in my case like:
class App(param.Parameterized):
file_input = param.Parameter()
def __init__(self, **params):
self.param.file_input.default = pn.widgets.FileInput()
super().__init__(**params)
@pn.depends("file_input.value", watch=True)
def file(self):
value = self.file_input.value
pl = pv.Plotter(notebook=True)
print(len(value))
if value:
self.file_val = value
print("file")
else:
print("error")
print()
def view(self):
return pn.Column(
self.file_input,
)
if __name__ == '__main__':
app = App()
app_view = app.view()
server = pn.serve(
app_view, \
websocket_max_message_size=10485760000,\
max_buffer_size=10485760000,\
max_body_size=10485760000,\
max_header_size=10485760000,\
verbose=True,
threaded=False\
)
Thanks a lot for your help.