jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => General => Topic started by: davidgal on 03.04.2018 10:14:13

Title: Update a download with a newer file with same name
Post by: davidgal on 03.04.2018 10:14:13
Hi, I'm new to jDownloads and am struggling to work out how I can replace a file in an existing download with a newer file with the same name but with different size and date stamp.

I just SFTP'd the new files into the directory. Downloads work and the new file is delivered but file metadata has not updated in the download record.

What is the correct way to do this?

Thanks,
David
Title: Re: Update a download with a newer file with same name
Post by: ColinM on 03.04.2018 15:29:17
Hi,
As youhave found, using FTP to replace the file itself is not a good idea!
As background a Download consists of various information and the file to be downloaded.  In principle the Title of the Download is not related to the name of the file, but the default action is that the Title is set to the name of the file.

I try to refer to the whole as a Download with a capital D to distinguish from a download action.
So to replace a file in a Download in either the Front End or the Backend you need to 'edit' the Download In the Backend one just clicks on the title of the Download. In the Front End if you have edit capability then the usual edit symbol appears.  In either case go to the Files tab.  There you will see a red cross against the file name.  This allows you to delete the file part. Probably best to do a Save at this point.  Then you can upload the new file.
Note if you want the Download to be marked as Updated then you need to set the modified date field - presently not done automatically

Colin
Title: Re: Update a download with a newer file with same name
Post by: davidgal on 03.04.2018 18:37:42
Thanks for pointing me in the right direction!
Problem solved.