0

Here is my code,

var uploadparameter = {
    base64url: imageData,        
};

$.ajax({
   url: '@(Url.Action("CustomAsyncUpload", "ProductCreation"))',
   type: 'POST',
   data: JSON.stringify(uploadparameter),
   contentType: 'application/json; charset=utf-8',
   success: function (data) 
   {

   }
});

When I'm passing too large base64 url in ajax call using asp.net core that time i'm facing issue.

So,How to pass too large base64 url in ajax call using asp.net core..?

Thanks, Kaushik.

K-Series
  • 189
  • 1
  • 2
  • 16

1 Answers1

0

As you are passing base64 so it has huge amount of string, so until it get upload you will get request timeout error, so Don't pass in base64, send image with form-data while uploading.

Mr. Raj Kale
  • 87
  • 1
  • 1
  • 7