File Picker Result in WebApp returns cancelled even files are picked on slow networks #1202
Open
1 of 4 tasks
Labels
feature-candidate
This issue might result in a feature to be implemented
new issue
An issue that hasn't yet been seen from the maintainer
web
Issue applies to Web platform
Describe the bug
Sporadically the timeout in the following function is reached in a WebApp when selecting files from slow networks (VPN connection,
...) Thus it looks like the dialog is cancelled even files are selected. Since this happens sporadically I think I am sometimes slightly above the 500ms, Of course the timeout can be extended in src code thus the selection will work with the drawback that the cancel detection takes longer.
This is the code part causing the issue
Solutions:
Seperate cancel from file picking. If files are picked wait until data is completed.
Provide the timeout value as parameter of the pickFiles() function
Platform
Version
file_picker 5.2.4
The text was updated successfully, but these errors were encountered: