cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The /upload behavior has been changed ?

The /upload behavior has been changed ?

wen_hsiao
Explorer | Level 4
Go to solution

Recently,  we received many feedbacks from our product users that the filename (use /upload) has become garbled. We found the "path" decode behavior might be changed by dropbox server.

For Example: (the current behavior)

curl -X POST https://content.dropboxapi.com/2/files/upload \
--header "Authorization: Bearer access_token" \
--header "Dropbox-API-Arg: {\"path\": \"/RICE/我的檔案\",\"mode\": \"add\",\"autorename\": false,\"mute\": false}" \
--header "Content-Type: application/octet-stream" \
--data-binary @test.pdf

{"name": "\u00e6\u0088\u0091\u00e7\u009a\u0084\u00e6\u00aa\u0094\u00e6\u00a1\u0088", "path_lower": "/rice/\u00e6\u0088\u0091\u00e7\u009a\u0084\u00e6\u00aa\u0094\u00e6\u00a1\u0088", "path_display": "/RICE/\u00e6\u0088\u0091\u00e7\u009a\u0084\u00e6\u00aa\u0094\u00e6\u00a1\u0088", "parent_shared_folder_id": "4082639392", "id": "id:Io0h0kFRW8sAAAAAANBUdA", "client_modified": "2019-10-09T08:32:39Z", "server_modified": "2019-10-09T08:32:39Z", "rev": "5947620b4879df3582220", "size": 38908, "sharing_info": {"read_only": false, "parent_shared_folder_id": "4082639392", "modified_by": "dbid:AADoF7JHXmoPd6Rx2X-1h0qzHUgXhnQfiH0"}, "is_downloadable": true, "content_hash": "cae9af2c924e769d376ed2143b0e8b0195b689764ac01be0ecc8e72b9a1feeb1"}

the decoded response "name" will be : æˆ‘的檔案

but in the past, the response "name" should be: \u6211\u7684\u6a94\u6848

which is the encoded string of "我的檔案"

 

 

12 Replies 12

wen_hsiao
Explorer | Level 4
Go to solution

@Greg-DB 

Thanks for your help, it works good now.

@MReizinho 

The issue caused the Cloud Sync upload failed.

From your screenshot highlights,  the second time file upload retry success, so I think the issue was solved.

But to be safety, you can contact Synology support to double confirm.

MReizinho
Explorer | Level 4
Go to solution

Dear @wen_hsiao, 

It's not working. Please read carefully my explanation on the previous post. The second time file upload is successful because it's uploading to the wrong named folder. That is also why you have the download after of the wrong file, because Cloud Sync detects a new folder and file on the Dropbox cloud.

I already opened the ticket in Synology support, it's ticket number #2380080 from October 7 if you want to check it out. But it has been poorly developped by the support staff. 

 

 

Greg-DB
Dropbox Staff
Go to solution

@wen_hsiao Thanks for the note.

@MReizinho If you're still seeing any broken functionality, please let the third party app developer know so that they can contact us with the relevant technical details so we can investigate.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    MReizinho Explorer | Level 4
  • User avatar
    wen_hsiao Explorer | Level 4
What do Dropbox user levels mean?