not getting access to "file"(image) to upload it
Hi,
i want to upload a file to the database. But the problem is am not able to get file so that i can send it instead am getting the file path as "fakepath/image1.jpg"
How can i get access to the "file" so that i can upload to the database.
i tried the below code:
onclick of button
$.ajax({
type: "POST",
url: "url",
enctype: 'multipart/form-data',
data: {
name: Appery("IMG1_mobiletextinput_13").val()
},
success: function () {
alert("Data Uploaded: ");
}
});