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

Handle preview/download/file size for files in Bucket storage #20

Open
apdavison opened this issue Oct 22, 2024 · 1 comment
Open

Handle preview/download/file size for files in Bucket storage #20

apdavison opened this issue Oct 22, 2024 · 1 comment

Comments

@apdavison
Copy link
Member

The "Result files" tab on the validation result detail page doesn't work properly where files have been uploaded to EBRAINS Bucket storage:

image

This will require additions to ResultRelatedFiles.js, in the ResultFile and possibly the ResultRelatedFiles classes.

Some of the problems: the Bucket/Data proxy API does not support using HEAD requests to get file sizes, instead need to use the GET /v1/buckets/{bucket_name}" endpoint to get information for all files in a given bucket/folder, and probably the "GET
/v1/buckets/{bucket_name}/{object_name}
" endpoint to get download links.

@apdavison
Copy link
Member Author

For reference, here is an example of how the view should look (here with files stored in the EBRAINS Drive storage, which is supported).

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant