Skip to content
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

Selenoid /download/ endpoint could return file meta-info #1302

Open
asolntsev opened this issue Jan 29, 2023 · 0 comments
Open

Selenoid /download/ endpoint could return file meta-info #1302

asolntsev opened this issue Jan 29, 2023 · 0 comments

Comments

@asolntsev
Copy link

Selenoid has an endpoint for getting downloaded files
http://localhost:4444/download/8c73726789bccd33d9fec040263030a7/?json

BUT it returns only names of files:

["some-file.txt"]

But when downloading files in tests, it's important to wait until the downloading process is completed.
To achieve it, we need to check the last modification time of the file.

That's why we are asking to return meta-info about files. First of all, its modification time (in milliseconds) and probably size (in bytes):

[
  {
    name: "some-file.txt",
    size: 20100,
    lastModified: 1675024208981
  }
]
@asolntsev asolntsev changed the title Could Selenoid return file meta-info with /download/ endpoint Selenoid /download/ endpoint could return file meta-info Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants