Upload Logo file using jquery
can anyone please give me the example how to upload logo file using jquery in C# MVC?? without using POST method..
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Brotsky Tv20 reputationPosted Sep 30, 2015, 10:51 PM EDT
{
}
Check this link :
Mukesh KumarRank #119 · 18.2K reputationPosted Sep 30, 2015, 10:58 PM EDT
Ashish VishwakarmaRank #575 · 4.2K reputationPosted Oct 1, 2015, 1:41 AM EDT
and if logo file is bigger then you can send this in multiple request.
alka vaghela16 reputationPosted Oct 1, 2015, 2:03 AM EDT
var files = $("#uploadLogo").get(0).files;
// Add the uploaded image content to the form data collection
if (files.length > 0) {
data.append("UploadedImage", files[0]);
}
// Make Ajax request with the contentType = false, and procesDate = false
var ajaxRequest = $.ajax({
type: "POST",
url: "/Home/uploadfile",
contentType: false,
processData: false,
data: data
});