New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store token persistently, emit complete event on reconnect (if upload is complete) #264
Comments
@arturi for how long do you imagine this token be stored? To minimize the requirements (in terms of storage etc), I imagine it could be stored in session, and it would hence, disappeared when the session is expired. Does this work for the desired feature? |
Yeah, thinking. How long would that session last approximately? Wasn鈥檛 able to quickly find a cookie to check. We are using https://www.npmjs.com/package/express-session and |
cookie.expires |
How long the session lasts can be configurable by any Ideally uppy-server is not concerned with setting up the sessions, it is only dependent on it. If a user uses |
Yeah, makes sense. However for this RestoreFiles feature #268 I鈥檇 like the restore functionality to work for around 24 hours. Something like that. Let鈥檚 also ask what @goto-bus-stop and @Acconut think :) |
Agree, I was thinking of something between 4 hours and 24 hours. |
ok, I think that can still be within the set lifetime of the session. |
24hrs is a good duration, out of my head. I would consider anything below half a day too low for some edge cases :) |
@arturi I have added this feature to uppy-server. Now if you try to reconnect to the uppy server with a socket token for which an upload has been initiated, it would either continue with feeding upload progress (if upload is still on), or give a success or failure status. The golden retriever branch doesn't seem to work with this feature out of the box. It seems it doesn't save the token on the client side yet. So instead it requests for a new token when the tab is closed and re-opened, hence, restarting the upload. |
while trying make uppy client support this feature, I noticed a race condition in my server implementation when multiple files are uploading at once. I am going to try to fix that |
I guess we might not be able to store the data in session after all |
I have fixed this issue |
馃帀 |
Discussed briefly in the call, could continue here 馃憣
The text was updated successfully, but these errors were encountered: