How to get URL for direct link to original file in media folder?

in Download Manager Free

Viewing 9 posts - 1 through 9 (of 9 total)
Feb 24, 2025 at 1:48 am
#203873
Participant
Noboru Tanaka
OP

Hi, I would like to get URL for direct link to original file in media folder.
And, I would like to insert this information to Page Templete.

I have checked following infromation, but they are not what I wanted.
https://www.wpdownloadmanager.com/doc/short-codes/wpdm_direct_link-embed-direct-download-link-as-a-simple-text-link/

How to make a direct link to a downloadable file in the Download Manager plugin

I would like to have URL like this:
https://domain.com/wp-content/uploads/2025/02/xxx.pdf

Thanks,

Feb 24, 2025 at 2:44 am
#203874
Participant
Noboru Tanaka
OP

I meant, I need static URL link to original file, not dynamic URL genarated by this plugin.
Thanks,

Feb 24, 2025 at 4:28 am
#203875
Moderator
Tahasin
Staff

Hello, Noboru

I hope you are doing well and thanks for reaching out.

To retrieve the download URL or link in your page template, use the tag [download_url] for the URL and [download_link] for the link. Please review this and confirm if it meets your needs.

Regards

Feb 24, 2025 at 5:08 am
#203878
Participant
Noboru Tanaka
OP

Hi, Tahasin,

Thanks, but this is not what I wanted. I know this function, but what I really need is the function to answer the original file URL from Media folder.
The function will provide a link like “https://domain.com/download/titile/#
What I need is a link like “https://domain.com/wp-content/uploads/2025/02/xxx.pdf “, which shows where the file is.

Thanks,


@Tahasin

Feb 24, 2025 at 5:14 am
#203879
Moderator
Tahasin
Staff

unfortunately, the only way to incorporate the direct link into the page template is manually, by copying the file path from the media.

Feb 24, 2025 at 5:39 am
#203881
Participant
Noboru Tanaka
OP

I see, Thanks.

Feb 24, 2025 at 5:44 am
#203882
Moderator
Tahasin
Staff

Welcome

Jan 29, 2026 at 4:38 am
#211202
Participant
Jerome Coffey

Something along the lines of “https://domain.com/wp-content/uploads/basketball stars/2025/02/xxx.pdf” would be great, as it would reveal the location of the file.

Jan 29, 2026 at 5:58 am
#211205
Moderator
Tahasin
Staff

Hello @Jerome

We have introduced a new feature Media Protection in our latest updates, you can read the documentation here

If you don’t want to apply media protection than, we recommend to upload the files from Attach File section in this way your file and file address remain protected.

If you have further queries, please open a new support ticket.
Regards

Viewing 9 posts - 1 through 9 (of 9 total)

The topic "How to get URL for direct link to original file in media folder?" is closed to new replies.