Skip to main content

Hi everyone happy.png

 

I have used this:

 

NWF$.ajax(

   { url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('test3')/items(" +    IDfrm + ")/AttachmentFiles/ add(FileName='" + fileName +    "',overwrite=false)?   $expand=ListItemAllFields",

  method: 'POST',

...

 

In oreder to add file from input,

What could be the problem?

Possibly some CORS issues. Check this post:  

Regards,

Tomasz


Reply