I have website with form I'am uploading image from using Html.BeginForm() through the controller. Uploaded image saves correctly (i see it in folder) but I can't see it on website. To do so I have to reload entire webbrowser.
How can I make image showing on my website after uploading? Website shows this image few times, on different views, always by <img scr="imagePatch"/>
. New image just saves itself with the same name as previous one, replacing it.
相关问题
- Views base64 encoded blob in HTML with PHP
- Generic Generics in Managed C++
- Is there a way to play audio on a mobile browser w
- How to Debug/Register a Permanent WMI Event Which
- HTML form is not sending $_POST values
there are many ways to do this you can use html file api inside your form.
this will work nice . either you can make your image preview look like better. for image preview element use this css code
for example
I hope this help