Click here to Skip to main content
15,897,718 members
Please Sign up or sign in to vote.
2.60/5 (2 votes)
See more:
how to save image to server using input file type without submitting the form
or reload
Posted

I believe you can use AJAX to do this.

Essentially you're still creating a post request but you'll doing it without posting back or reloading the current page.

Uploading Files with AJAX[^]
 
Share this answer
 
Hi Mahmoud,

Have a look at: jQuery Ajax File Upload[^]

It suggests an IFrame in the first solution (which back then was probably the only solution)

But better yet, it suggests an AJAX upload in the other solution without an IFrame, which is really nice, (requires jQuery and HTML5)
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900