uploaded image doesn't change in the browser, although on the drive I have the new image
Posted
by Omu
on Stack Overflow
See other posts from Stack Overflow
or by Omu
Published on 2010-05-01T08:18:35Z
Indexed on
2010/05/01
8:27 UTC
Read the original article
Hit count: 203
asp.net-mvc
I have a View where I can upload an image and the image is also displayed in there like this:
//ResourceStorage is a virtual directory that indicates to the pictures storage location
<img src='<%=Url.Content("~/ResourceStorage/Profile/pic.jpg") %>' alt='pic' />
after I upload the picture, on the hard drive I get the new "pic.jpg" but in the browser I still have the old one (I tried clearing the cache, doesn't help)
© Stack Overflow or respective owner