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

Improve media download and preview endpoints #184

Merged
merged 2 commits into from
Jan 27, 2025

Conversation

julien-nc
Copy link
Member

  • Use new endpoint to download task output files. This one deduces the mimetype from the file content. (So browsers append a type extension to the file name when downloading)
  • Cache download and preview endpoint responses
  • Use the preview endpoint to display result images (300x300) instead of getting the complete image
  • Generate openapi specs
  • Fix psalm issues

…e detection, use preview endpoint to display image results

Signed-off-by: Julien Veyssier <[email protected]>
@julien-nc julien-nc added enhancement New feature or request 3. to review labels Jan 27, 2025
@julien-nc julien-nc force-pushed the enh/noid/media-mimetype-endpoints branch from 2c58536 to 6cad0c5 Compare January 27, 2025 11:29
Signed-off-by: Julien Veyssier <[email protected]>
@julien-nc julien-nc force-pushed the enh/noid/media-mimetype-endpoints branch from 6cad0c5 to a19dbe0 Compare January 27, 2025 11:33
@julien-nc julien-nc merged commit 82b23dc into main Jan 27, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants