I am using a react app to upload a file in it and then want to save it to Monday using api. I have tried it by using Monday SDK.
-------------------Code starts-------------------------
let query = mutation { add_file_to_column (item_id: 1867830321, column_id: "files", file: C:/Users/HP/Downloads/googleDocsLogo.png) { id } }
;
monday.api(query)
.then(res => { console.log('res is '+JSON.stringify(res)) })
.catch(error => { console.log('error is '+error) })
-------------code ends-----------------
I have tried using fetch request as well but there getting ‘cors’ issue.