Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Uploading with Ajax without using a form

$
0
0

I have a page within my site that a user can submit basic information using 3 textareas.  The data is sent to a MVC controller via ajax with a post action.

I want to add the option for a user to upload a file along with the other data.  I do not want to have to use a form nor do I really want to use too many additional packages such as bootstrap.  I want to keep everything as simple as possible for the moment.

Is it possible using basic JQuery and Ajax to have a file passed to a controller that I can then manipulate to either save in a database or to a fileserver without using a form? 

Many of the examples that I have seen require a form.  I don't have a form anywhere in my site and I'd like to keep it that way if possible.

I am fairly new to MVC development so I don' t need anything extremely complicated at the moment.

I'm using MVC 4 with C#


Thanks for the help!


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>