Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Filip S.7
10 years agoNew member | Level 1
Write a delta to the latest revision?
I'm creating a simple online form where I want to send the submitted data to my Dropbox Datastore using PHP.
Now the problem is, this might cause concurrency issues which I'm not sure how to handle. Consider the following scenario where two users (A and B) submit the form at the same time:
A calls get_datastore and gets rev=10
B calls get_datastore and gets rev=10
B calls put_delta with the form data and rev=10, incrementing current revision
A calls put_delta with the form data and rev=10, but this fails since current revision is now 11
I could simply make a loop and keep trying until put_delta succeeds, but this seems like bad practice since all I want is to append a record and don't really care about the revision, as far as I can see. Is there any way to make a put_delta call (or equivalent) and somehow specify rev=latest?
1 Reply
Replies have been turned off for this discussion
- Steve M.10 years ago
Dropbox Staff
There's nothing like
rev=latest, so you should indeed loop in this case. That's how, for example, the Python SDK works.
About 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!