Learn how to make the most out of the Dropbox Community here 💙.
Forum Discussion
pruebascceo
3 years agoExplorer | Level 3
My dropbox files get broken after a while
My Dropbox files start to break after a while. I'm making a Laravel Application with the Spattie Dropbox Client to connect my Dropbox account to the system. So, when a user uploads an image from the web application, the shared link stores in the database; the issue comes when, after x days, my shared link is getting nothing. I logged into my account and realized that all of my files were broken. No one else is using my account. What's happening?
- Greg-DB
Dropbox Staff
I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with:
- the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
- the full text of any error or unexpected output
- pruebascceoExplorer | Level 3
Uploading a file to Dropbox and Getting the shared link:
Function to get the shared link
Internal Dropbox Client function to generate the file's shared link
And it works perfectly, the shared link works, but after a while (1-2 days) the files stored in dropbox starts to broken. I thought the issue was caused by the shared link's default expiration, but i dont think so:
- Greg-DB
Dropbox Staff
Thanks for following up with the additional information. So when you refer to the file being "broken", I see you're referring to the Dropbox web site being unable to preview the image.
The existence or expiration or a shared link shouldn't corrupt a file. If a shared link is no longer valid, the shared link page would no longer load at all; it wouldn't change the file data.
I suggest checking a few things:
- Are there any other clients or operations running on your Dropbox data that may be changing these files? You may want to check the event history.
- What is the size of the file when it is broken? Is it a different size than when you originally uploaded it?
- What data is actually in the broken file?
- If you download the broken file, are you able to view it as an image locally?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,965 PostsLatest Activity: 3 hours ago
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!