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

Document how to serve static resources not defined at startup #34254

Open
gsmet opened this issue Jun 22, 2023 · 3 comments
Open

Document how to serve static resources not defined at startup #34254

gsmet opened this issue Jun 22, 2023 · 3 comments
Assignees

Comments

@gsmet
Copy link
Member

gsmet commented Jun 22, 2023

Take the following case:

  • the application uploads images in a directory
  • you want to serve the images from this directory

Ideally you would use a Vert.x router to serve the images and this needs to be documented (also, we need to document the fact that you should NOT upload your resources to META-INF/resources).

See https://stackoverflow.com/questions/76530777/serving-images-static-files-from-quarkus-is-failing-on-server for more context.

@gsmet gsmet self-assigned this Jun 22, 2023
@maxandersen
Copy link
Member

+1

related to #33222 about having a way to automatically pick up an implicit location to serve static resources which could then be served more efficiently. This would be complementary and have it documented how to do it explicilty is definitely good.

@dvsingh9
Copy link

@gsmet this documentation should be part of https://github.com/quarkusio/quarkus/blob/main/docs/src/main/asciidoc/vertx-reference.adoc?plain=1#L882
Another section talking about serving static resource ?

@dvsingh9
Copy link

#36157 for review

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

3 participants