How can I auto-update the file I upload?

Viewing 25 posts - 1 through 25 (of 37 total)
#163187

Adeyeye Gabriel
Participant

I currently use a system where my files are stored in the Hosting Server and everyday new files are sent to that directory to overwrite the former files.

Can this plugin work that way too?

So I wont need to edit the product from the website dashboard and the download URL remains the same?

Thanks.

#163189

Tanvir
Moderator

Hello @science4me,
Hope you are well.
You can select this option in order to overwrite an existing file.
Also, you can do it from Dashboard>Downloads>Asset Manager like this.
Thanks.

#163190

Adeyeye Gabriel
Participant

Okay Tanvir,

But can I create more than 1 Directory for my files?

Because my files are in 3 directories right now and I will want same thing on your system, which will be updated by API from the Web hosting end and not from WordPress dashboard.

Also, One of the directory will be showing more than one file in its directory i.e I will keep uploading more files to the Directory and it will keep appearing (i.e showing the new files and old files, so users can download anyone they want) on the frontend for my users to download without altering my shortcode. Note that the uploads will be to the directory and not from WordPress Dashboard of your plugin.

Are this all possible?

Thank You.

Am asking all this question before I buy the premium version.

#163191

Tanvir
Moderator

Hello,

you will need wpdm pro discounted special pack for this:

WordPress Download Manager Special Pack

Let me explain more details:

#1. You can create multiple directories in wpdm upload directory.
#2. You can upload files to that folder using FTP or any other way
#3. Any change in the folder also will be updated in the package automatically
#4. This means when you add a file to that folder, the front-end user who has access to the package will get the file automatically, you don’t need to edit/update the package.
#5. The special pack has an add-on ( Advanced Access Control ) to help you to assign a package to specific users on need.

Also we have a free addon for REST API. You can check that too.

Download Manager REST API

Thanks

#164658

Adeyeye Gabriel
Participant

Thank you, I got the special now.

But I am having a problem.

How can I show the update date of a file (i.e when last the file was updated)

I need the shortcode for it

I used the Simple download link text shortcode.

[wpdm_direct_link] – Embed direct download link as a simple text link

Thanks

#164674

Tanvir
Moderator

Hello @science4me,
Welcome to the pro version of WPDM.
You have to use the template tag [update_date] in page template or link template to show the update date.
You will find all template tags below:

Template Tags


Thanks

#164700

Adeyeye Gabriel
Participant

Hello Tanvir,

Thanks for the feedback.

The shortcode didn’t work as I want.

What I want is instead showing a zip of the files.like this https://ftsincome.co.uk/testin-dwn/

I want it to list just One file from the directory with the file last updated date like this

And without listing all the files in the directory on another page like this https://ftsincome.co.uk/download/test/

I used this shortcode on this page https://www.wpdownloadmanager.com/doc/short-codes/wpdm_direct_link-embed-direct-download-link-as-a-simple-text-link/ , but beside the download link I want to show the updated date i.e the day the file is uploaded. and not show all the files in the directory but the last uploaded file.

Thanks.

#164734

Tanvir
Moderator

Hello,
I am sorry to hear about the issue. Those are actually not shortcodes.
Those tags are template tags.
You need to add those to page template or link template to affect.

In example:
it is an example of link template https://ftsincome.co.uk/testin-dwn/ . You need to add the template tag to link template to show update date there. By default it is default link template if any link template is not selected.

It is an example of page template https://ftsincome.co.uk/download/test/ You need to add that tag in page template to show the update date.

Please follow this to get more details

Templates

Let me know please if it solves the issue.
Thanks

#164806

Adeyeye Gabriel
Participant

Hello,

Thanks but I want the date for each file when they are uploaded in a directory.

A sample is attached below
https://drive.google.com/file/d/1124-G3YqZ4YWjHF0APIthZ9iAaMEAlJU/view?usp=sharing

Those files are coming from a directory.

So the file name and the date the files are uploaded.

I have been able to edit the link template to this
https://drive.google.com/file/d/1yzcGMoYHoeXEbw4_plJqXai_REJKx13G/view?usp=sharing

But the files are showing in grid, while I will want them in list but also show the date for each file update, just like how the sizes shows.

This is the code used below

<div class=”link-template-default card mb-2″>
<div class=”card-body”>
<div class=”media”>
<div class=”mr-3 img-48″>[icon]</div>
<div class=”media-body”>
<h3 class=”package-title”>[page_link]</h3>
<div class=”text-muted text-small”><i class=”fas fa-copy”></i> [file_count] [txt=file(s)] <i class=”fas fa-hdd ml-3″></i> [file_size]</div>
</div>
<div class=”ml-3″>

</div>

</div><br>
[file_list_extended]
</div>
</div>

#164860

Tanvir
Moderator

Hello,
Hope you are well.
Could you please share the related pages URL with us?
If possible please also share the admin access of your website in a private reply.
It helps us to quickly figure out the issue and resolve it immediately.

Thank you

#164870

Adeyeye Gabriel
Participant

Hello Tanvir,

Please login with this link.

And check my explanation above and the picture sent above.

Thanks.

#164902

Tanvir
Moderator

Hello,
I didn’t find any login link?
Please provide it in a private reply.
Could you please recheck the last message you sent?

#164915

Adeyeye Gabriel
Participant
This reply has been marked as private.
#164939

Tanvir
Moderator

Hello,
I have created a custom link template for you with the date.
Please use that link template link_template_with_date for the page.
I hope it will solve the issue.
Thanks

#164952

Adeyeye Gabriel
Participant
This reply has been marked as private.
#164960

Tanvir
Moderator

Hello,

I am sorry unfortunately you cannot arrange attached files list with link templates this inside any package.
You can create a download package with one file or many files that will be shown there. you can only set search option for many attached files in a download package. All template tags and shortcodes are based on download package.

Let me give you an example:
Here is an demo what are you looking for
http://demo.wpdownloadmanager.com/wpdmpro/package-list-in-responsive-table/
Here you see all the packages not single file. Every packages containing one attached file or multiple files.

I found that you have used [file_list] and [file_list_extended] template tags to show filelist.
Only these two template tags are available to show the filelist. No easy way to change the design for the filelist. To change that we need to change in php file in plugin.

However let me know your thoughts about the issue.

Thanks

#164961

Adeyeye Gabriel
Participant
This reply has been marked as private.
#164979

Tanvir
Moderator

Hello,

Got the issue.

If you would use

Advanced Custom Fields

You would see a single file update date option in package like this (only if you upload file manually. Not for directory like you selected on your website)
Screenshot-2

Then it would show updated on … text on file name like this (only with [file_list] tag not for [file_list_extended])
Screenshot-1

But as I see that you selected directory from server, Actually there is no update date for any single file. That’s the reason actually it is not possible to show update date for the files you added. Sorry for that.

I hope you have understood.

Thanks

#166215

Adeyeye Gabriel
Participant

Hello Tanvir,

Thanks for your help but I need your help still.

How can I use a button template and add my custom download link text.

Also for the initial template I created, how can I list the files that shows to just the newest files and limit it to just 14 files.

Right now it is showing all the files in the file directory, but I need it limited to 14.

Thank You

#166217

Tanvir
Moderator

Hello @science4me,
Hope you are well.
To add button template please follow and use this:

WPDM Button Templates

Also I am sorry that there is no settings to set downloads to 14 files. You can delete and upload new files.
Thanks

#166227

Adeyeye Gabriel
Participant

The current client file manager plugin does this for them and it is actually a free plugin.

And they are trying to move to this plugin

Without been able to limit the number of files will be a problem, and listing them from the latest to the oldest.

Please check further for me please.

Also regarding the Button, I need to add a Text for the Button i.e different text for a different buttons I will be adding

#166236

Tanvir
Moderator

Hello,
It needs some customization in the plugin.
we may add this in a future update and in the meantime you can post it in the feature request section.
However, if you think you need it urgently then you can contact our customization team by leaving a mail customize@wpdownloadmanager.com
or
You may contact to the customization team here as well.

For changing the text in button, Please provide me related package/page/file url with details and temporary admin access in a private reply. I will solve the issue.

Thanks

#166275

Adeyeye Gabriel
Participant

Hello Tanvir,

I have mailed the customization team now.

I want to know how to change the Button text myself so I can show my customer, they need to be able to change the text themselves.

#166285

Tanvir
Moderator

Hello,
Could you please share the related page/file/package URL with us with details to check futher?

#166416

Adeyeye Gabriel
Participant

Hello Tanvir,

I have shared you the page URL and it is the same package.

https://ftsincome.co.uk/testin-dwn/

Please check

Viewing 25 posts - 1 through 25 (of 37 total)

The topic ‘How can I auto-update the file I upload?’ is closed to new replies.