Forum Discussion

juandom_gett's avatar
juandom_gett
Explorer | Level 4
2 years 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.

1 Reply

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    2 years ago

    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.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!