Forum Discussion

diego_gecko's avatar
diego_gecko
New member | Level 2
7 years ago

https://content.dropboxapi.com/2/files/get_preview issue 409

Hello.

 

I'm trying to get a preview of files stored in shared Dropbox folder, I'm working on JS and I'm getting this error 409 : path not found.

This is my script::

var dropboxToken = "My_token";
$.ajax({
url: "https://content.dropboxapi.com/2/files/get_preview",
type: 'POST',
cache: false,
//dataType: 'json',
headers: {
'Authorization':'Bearer ' + dropboxToken,
'Content-Type': "application/octet-stream",
'Dropbox-API-Arg': JSON.stringify({
".tag": "path",
"path": "/Pruebas_liveChat/livechat-visual2+(5).pdf//",
}),
//"path": '/Pruebas_liveChat/livechat-visual2+(5).pdf',
},
error : function(err){
console.log(err);
},
success : function(code) {
console.log(code);
},

});

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 4 seconds ago
352 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!