You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

juandom_gett's avatar
juandom_gett
Explorer | Level 4
9 months ago

lock_file_batch prevents file from being edited in the web but the API still can

Hi everyone! Hope you're having a great day ðŸ˜€

 

I'm testing the lock functionality using two accounts; one is the owner of a shared folder and another is the user of that folder; sees it and uploads things inside.

 

So the thing I'd like to achieve is that after the user uploads a file to the folder that user can't delete it.

 

I've tested uploading with the user account token, and then locking with the lock_file_batch endpoint using the owner token, and when I see that file logged as the user, in the Dropbox web ui the actions for delete, rename and move are disabled, but when I use the API with a user token, I still am able to delete the file.

 

Is this normal and I didn't understand something right?

 

Thanks in advance.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Thanks for the report! I'll check on this with the team.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,888 PostsLatest Activity: 12 hours ago
326 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!