Reputation: 601
I have an ASP.NET
registration form which I want the user to upload their photo in it. I need to show the image immediately after the user selected it without page postback
.
I assume I have to use Asynchronous File Upload
, right? But is there a way to show the image without actually saving it on server? Because I need to check if all entered data by user is valid and then allow the program to upload user's photo to server.
Thanx in advance.
Upvotes: 1
Views: 551
Reputation: 815
How to upload an image with jQuery client side and add it to a div? you would have to do a Client side load of the image first... and use ajax to validate the user information. If the first ajax call is validated then you make yet another ajax call from your javascript including the image.
Upvotes: 1