Hello Experts,
I have a business requirement in which files could directly be uploaded from dropbox through my javascript based web application(SAPUI5). My application is SAP UI5 based web application and the files chosen from dropbox would be stored inSAP servers. To achieve this integration, I am using Dropbox chooser to get the file link and ID. I am passing this link or ID to /files/download API of Content-download endpoint. However, I am error 400 when I pass the file path and error 409 when I pass the file ID. Please check the screenshots for more details.
Error 400 - Bad Request:
Error in call to API function "files/download": HTTP header "Dropbox-API-Arg": path: 'https://dl.dropboxusercontent.com/1/view/j70yl6got1o2x50/Test/testfile.docx' did not match pattern '(/(.|[\r\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)'
Error Message

Error 409 - Conflict


Please help me to resolve this issue and guide me on how can I achieve this requirement.
Thanks and regards,
Arpit