cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We're looking to hear about your experience when using Dropbox in a web browser. What parts of Dropbox feels very slow to you and takes a lot of time to get done? What are you trying to do in the Dropbox web browser when you experience slowness? Tell us right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
1
Ask
2
Reply and help

My dropbox files get broken after a while

My dropbox files get broken after a while

pruebascceo
Explorer | Level 3

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?

pruebascceo_0-1676401082357.png

 

5 Replies 5

Re: My dropbox files get broken after a while

Greg-DB
Dropboxer

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

Re: My dropbox files get broken after a while

pruebascceo
Explorer | Level 3

Uploading a file to Dropbox and Getting the shared link:

pruebascceo_0-1676477102881.png

Function to get the shared link

pruebascceo_1-1676477140454.png

Internal Dropbox Client function to generate the file's shared link

pruebascceo_2-1676477189015.png

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: 

pruebascceo_3-1676477586331.png

 

 

 

Re: My dropbox files get broken after a while

Greg-DB
Dropboxer

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?

Re: My dropbox files get broken after a while

pruebascceo
Explorer | Level 3

1.- There´s nothing about removed files activity.

2.- The file's size changes.

3.-

pruebascceo_1-1676908067587.png

4.-

pruebascceo_0-1676908019079.png

There's nothing.

 

 

Re: My dropbox files get broken after a while

Greg-DB
Dropboxer

1. The file wouldn't necessarily have been removed. It seems like it may be edited.

2. If the file size changed, it sounds like it was edited at some point. You can check the version history of the file.

3. It's unclear what you're showing in the last screenshot. Is that you attempting to view the file on the Dropbox web site or locally after you downloaded it from the Dropbox web site? It may be helpful to inspect the contents in a text or binary editor locally to see what is in the file.

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    pruebascceo Explorer | Level 3
What do Dropbox user levels mean?
Need more support?