[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Posting files with Jquery AJAX

Posted on 2015-01-20
1
Medium Priority
?
135 Views
Last Modified: 2015-02-02
I am using

		$.ajax({
						type: "POST",
						dataType: 'json',
						contentType:attr("enctype", "multipart/form-data"),
						url: "index.php",
						data: $(form).serialize(),
						success: function(response) {

Open in new window


I read somewhere that not all browsers will serialize file input fields, please advise
0
Comment
Question by:Mark
1 Comment
 
LVL 34

Accepted Solution

by:
Big Monty earned 2000 total points
ID: 40560660
check out thejQuery Form Plugin:

http://jquery.malsup.com/form/
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses
Course of the Month19 days, 19 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question