While uploading pdf showing error in ajax call error 403 forbidden

114 views
Skip to first unread message

pawan ks

unread,
Dec 5, 2023, 5:22:40 AM12/5/23
to Chromium Extensions
facing some problem While uploading pdf showing error in ajax call error 403 forbidden a padding to disable MSIE and Chrome friendly error page here is my ajax call >> upload pdf ajax call please resolve this

function submitIndividualSharedFileInviteCandidate() { var data = new FormData(); var files = $('#individual')[0].files data.append('file',files[0]); if (!validateIndividualResumeUpload()) { return false; }else{ if(dummyData == "DummyData"){ currentactivity_dummyData = "btn_shareEmployee_uploadIndResume"; deleteDummyData(); removeDummyData="removeDummyData"; } } // var data = new FormData(formdata); var csrf = $("input[name='_csrf']").attr("value") $.ajax({ headers : { "X-CSRF-TOKEN" : csrf }, type : 'multipart/form-data', processData : false, // Important! contentType: false, cache : false, //this is my servlet data : data, type : "POST", url : "./parseResume", success : function(result) { if (result.status == "Done") { current_employee_id = result.data.employeeId; $('#myModal').modal('hide'); $('#candidatesBlock1').empty(); } $(".tab-slider--navresumedetails li:nth-child(2)").trigger('click') $(".tab-slider--navresumedetails li:nth-child(1)").css('pointer-events', 'none'); $(".add_candidate_form_parent").css('height', '698px'); $(".add_candidate_form_parent").css('overflow', 'auto'); getSupplierEmail() var obj = result.data; unparsed_resumes_list = obj; current_employee_id = obj.employeeId; $('#userId_unparesedResume').val(obj.employeeId); unparsedBulkSharedResumePreview(obj); $('#btn_save_unparsedSharedBulkResumes').html('Save'); if (result.status == "error") { $('#myModal').modal('hide'); } }, error : function(result) { console.log(result); } }); }

while uploading pdf showing this error 403 Forbidden a padding to disable MSIE and Chrome friendly error page

Patrick Kettner

unread,
Dec 6, 2023, 4:38:53 AM12/6/23
to pawan ks, Chromium Extensions
Hi Pawan,
There is nothing clearly wrong with your code that is specific to extensions. I would suggest debugging the same way you would any other network issue in web development.

patrick

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/80648faf-82dc-4a4c-ba3f-92e118dc8bb2n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages