Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
alicera
4 years agoExplorer | Level 3
how to make sure Dropbox link whether it can download
here is the code
```
if wget -q --method=HEAD ftp://ftp.somewhere.com/bigfile.gz; then echo "This page exists." else echo "This page does not exist." fi
```
I try to use correct...
- 4 years ago
alicera wrote:...
```
if wget -q --method=HEAD ftp://ftp.somewhere.com/bigfile.gz;
then
echo "This page exists."
else
echo "This page does not exist."
fi```
...
Hm... 🤔 alicera, let's change it little bit:
if wget -q --method=HEAD --max-redirect 0 https://www.dropbox.com/s/abcdefg/123?dl=0 ; then echo "This page does not exist." else echo "This page exists." fi
Is it working now? 😜
alicera
4 years agoExplorer | Level 3
Assume these link are setting to share
correct drop box link: https://www.dropbox.com/s/abcdefg/123?dl=0
incorrect drop box link: https://www.dropbox.com/s/abcdefghiklnd/123?dl=0
where the incorrect drop box link is the two status to generate
1. mistake by myself. I got the link wrong when typing.
2. I remove the file but link is hard code somewhere
So I wnat to write a code to check whether the link work or not
Do you know what I mean?
Rich
Super User II
4 years ago
alicera wrote:
So I wnat to write a code to check whether the link work or not
The problem you're likely running into is that even when the file doesn't exist, the page still does, and that is what wget is checking for. You're not actually checking for the existence of a file; you're checking a specific page (the URL of the shared link), and that page will load even when the file doesn't exist, so wget reports that the page exists.
- alicera4 years agoExplorer | Level 3
I try to give the error dropbox link format .
It can download a file (invalid file)
you can try it
About View, download, and export
Need support with viewing, downloading, and exporting files and folders from your Dropbox account? Find help from the Dropbox Community.
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!