Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
julio_diniz_perdigao
2 years agoExplorer | Level 3
Revoke get_temporary_link
Hello!
Is there an way to revoke a get_temporary_link without wait it to expire? I tried to use revoke_shared_link, but seems that it works only for shared link e not for a temporary link.
Error while trying to use revoke_shared_link: {"error_summary": "shared_link_malformed/.", "error": {".tag": "shared_link_malformed"}}
Thanks in advanced!
13 Replies
Replies have been turned off for this discussion
- Greg-DB2 years ago
Dropbox Community Moderator
No, there isn't a way to proactively revoke a temporary link, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
- julio_diniz_perdigao2 years agoExplorer | Level 3
Thanks Greg-DB!
Do you know if there is a limit of creating a shared link for a specific file using create_shared_link_with_settings? I mean, can i create and revoke as many links for the file, at same time?
Did not find answers in docs.
thanks again!
- Greg-DB2 years ago
Dropbox Community Moderator
Unfortunately Dropbox does not support creating multiple shared links for the same item, but I'll pass this along as a feature request as well.
- julio_diniz_perdigao2 years agoExplorer | Level 3
Hi Greg-DB !
Is this normal? Look at this scenario....
Get an link using the endpoint "get_temporary_link" of video file. After that, I removed the file permanently, but the temporary link still working and the video plays normal. Tested with different types of web browsers.
Thanks!
- Здравко2 years agoLegendary | Level 20
julio_diniz_perdigao wrote:...
Is this normal? Look at this scenario....
No, it's not normal if it is. How exactly are you testing it? 🤔 Is there any chance some cache to confuse you? I just tested and it works as expected. Can you provide exact steps for reproduction.
- julio_diniz_perdigao2 years agoExplorer | Level 3
Hi Здравко ,
I don't think is some cache, cause I make tests with 2 different browsers and opening with private window.
But, may this is the thing. This file was created from another that still exists on my dropbox. I used the endpoints copy-reference/get and copy-reference/save. Greg said on other topic that, the copy and copy-reference a very similar, but I think now that copy-reference keeps linked with the original file, right?
- julio_diniz_perdigao2 years agoExplorer | Level 3
I removed all files, include the original uploaded without api and the link bellow still working at the moment of writing this message.
- Greg-DB2 years ago
Dropbox Community Moderator
julio_diniz_perdigao These temporary links refer to the data itself, and so may continue working even once the file has been deleted, but this behavior is not guaranteed.
- Здравко2 years agoLegendary | Level 20
Greg-DB wrote:... These temporary links refer to the data itself, and so may continue working ...
julio_diniz_perdigao Yes, as I investigated a bit more it seems like that's the rule. Whenever link fails after permanent deletion, it's rather by mistake - status code > 500 (unstable core work).
Greg-DB, this means that there is no permanent deletion actually. 🤷 Just invisibility in user accessible places (including deleted files). 🤦 In fact this is a LIE! Dropbox doesn't remove the files permanently.
One more cons.
- julio_diniz_perdigao2 years agoExplorer | Level 3
I did a second test, using the shared link instead of temporary link and yes, it works as expected. After permanently delete the file, the shared link does not work anymore. But the temporary link still working.
About Discuss Dropbox Developer & API
Make connections with 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!