filestack / filestack-react

Official React component for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
https://www.filestack.com
MIT License
164 stars 40 forks source link

setting errorTimeout does nothing -- is there no way to change timeout for uploads? #123

Open Johnrobmiller opened 2 years ago

Johnrobmiller commented 2 years ago

I am helping to make an app that uses the Filestack PickerOverlay, and we got a couple complains from people who were having trouble uploading. I checked to see if the upload was timing out, and it was. When throttling in Chrome at fast 3G, I was unfortunately only able to upload up to 9.61MB before it timed out.

I see that the pickerOptions has a property called "errorTimeout". Unfortunately, the docs give bizarre and incomplete information about it. All the docs say is "timeout for error messages", as if the error message for the async function requires a timeout rather than the async function itself. It also does not say whether this is in seconds or milliseconds. Regardless, I tried putting several different values in (1, 999, 9999999, and 999999999) and none of them changed the timeout length.

Is "errorTimeout" actually the option intended for users to change the timeout for an upload? If so, then it seems to be bugged, and if not, then how do I do this? (In either case, I think that the docs need to be updated to provide more clarity.)