-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Direct Download Url Support #5707
Comments
There is 1m timeout before a link is gone. If you script connect within 1m after triggering download, it should not it be enough? Or you missing some additional APIs, i.e. to detect programmatically when download is prepared? |
@akosyakov before pr i can use workspace path direct download like |
We could provide a http-endpoint to get a link, so that you don't need UI. Would it work? |
@akosyakov ok |
You do not need UI. you have to do two separate requests instead. First, you get the download ID with an HTTP GET. This can be a PUT if you want to download multiple files, then you perform another GET with the download ID.
Note, here I have used Node.js to parse the download ID, but you are free to use whatever you want, for instance, jq. @502647092, it would be great if you can adapt your scripts to the latest file download API, and get back to us if you could not use the proposed solution. If it works, I suggest closing this. |
@kittaakos Thank you |
I did not check for archives, feel free to reopen if you could not fully restore your scripts. Thanks! |
Description
@kittaakos @akosyakov
before #5466 i have a script to auto sync theia workspace and server use direct download url
but after #5466 i can't do it
maybe can provide a permanent link for some file or dir
Reproduction Steps
OS and Theia version:
Diagnostics:
The text was updated successfully, but these errors were encountered: