You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a production environment, I ran into an issue when I uploaded multiple files at once, only 2-3 files out of 10 files were uploaded to the desired location. And the rest of the 7 files were uploaded to a different location.
Also, the stage environment took significantly less time to upload these files than in prod environment.
Thus, the error was non-existing in the stage environment (both are same tier Entry running 2.1-alpha)
I wanted to clarify my confusion,
With a 500ms setTimeout, if we upload multiple files, and let's say, a file takes more time, then won't the timeout be cleared and replaced by next file's timeout?
Inside the useEffect, won't we miss some files in the persisted state or list if multiple files take varied time to upload?
I thought about mapping outside the if (isAllSuccess), something like
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, currently the
FileUploadTriggeris structured like this:In a production environment, I ran into an issue when I uploaded multiple files at once, only
2-3files out of10files were uploaded to the desired location. And the rest of the7files were uploaded to a different location.Also, the
stageenvironment tooksignificantly less timeto upload these files than inprodenvironment.Thus, the error was non-existing in the
stageenvironment (both are same tierEntryrunning2.1-alpha)I wanted to clarify my confusion,
I thought about mapping outside the
if (isAllSuccess), something likebut I don't think, it'll make any difference.
Could you help me figure out why the error arose in
prod?Thank you!
Beta Was this translation helpful? Give feedback.
All reactions