What is working right now is i can upload to the root folder of a library using the code below :
myDropzone.options.url = `${_context.pageContext.web.absoluteUrl}/_api/web/Lists/getById('${_parent.props.listName}')/rootfolder/files/add(overwrite=true,url='${file.name}')`;
What i want is to be able to send the files to a specific folder. i have tried using the below code but i get 404 error.
myDropzone.options.url = `${_context.pageContext.web.absoluteUrl}/_api/web/Lists/getById('${_parent.props.listName}')/folders/folder1/files/add(overwrite=true,url='${file.name}')`;
myDropzone.options.url = `${_context.pageContext.web.absoluteUrl}/_api/web/Lists/getById('${_parent.props.listName}')/rootfolder/folders/folder1/files/add(overwrite=true,url='${file.name}')`;