On my website I let users upload images.
I save the images under some hashed (based on name + timestamp) name.
I store both the original name as the hashed name in the database.
I would like to display the image on my page using the original name.
CASE
- user uploads
test.jpg - image is saved as
/img/6eabd22d35b4132cc58e4dff75e466cc1e444d93053ca80087b12ff620bd3451on the server - both original and hashed names are stored in database
- display the image on a page using the original name (
<img src="/img/test.jpg" alt="" title="">) which actually is/img/6eabd22d35b4132cc58e4dff75e466cc1e444d93053ca80087b12ff620bd3451
Is this possible?
OK. What I wanted to do is simply not possible.