ASP. net mvc image preview before uploading,
I went back to my hometown for the Spring Festival and spent more than half a month at home. I had a good time sleeping, and I also got 3.5Kg long. There is no computer, no network, no code, and the work is completely put down ......
I'm happy to spend years with my parents and children, so that Insus. NET is still in love now ......
Return to the battle place every day on time yesterday, get a fortune with the bosses, and receive a red envelope. Technology has changed our lives. Insus. NET's boss turned to the Internet () to send red packets, and his hands were fast and slow. He was lucky to get the money. How much he got the money was a benefit ......
This year's learning plan is to learn ASP. net mvc and jQuery, practice more, and find or read more books online without understanding it!
In the morning, you can preview the exercise image before uploading it and obtain the image file name and size in bytes.
Create an Action in the controller:
Create a view PreViewing under the Controller name corresponding to the Views directory:
Mark 1 to reference the jQuery class library.
Mark 2 and select a file.
Mark 3 to preview the image.
Mark 4 to display the image file name and size in bytes.
Mark 5, which is Javascript code ......
Preview this example: