I want to be able to create pretty links to images in the uploads
folder that are based on the image record ID in the DB.

For example:
[app]/images/download/[image_id]

However, I can't figure out how to create a function that would
trigger response.download(_), as that function requires a request
object with a filename arg.

Is there anyway I can read an image record ID, retrieve the filename
from the db, and use that to trigger response.download()?

Reply via email to