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? 😜
Jay
Dropbox Community Moderator
4 years agoAs far as I'm aware, it isn't possible to determine if a file exists at a specific link. Entering the incorrect link means it wouldn't be possible to locate the file.
If the file was deleted, the shared link would also be deleted, and can't be restored to the same link.
alicera
4 years agoExplorer | Level 3
I mean I upload a file and share it .
I will get a share link and I can download it with wget .
And I hard code the link to my program.
Someday, I delete the file on dropbox and forget to change the program share link code
So I want to add some code to check whether the link invalid or not
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!