News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

No update of file_date or sha1_value when files are modified

Started by mikest, 16.11.2026 23:21:09

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mikest

After updating files via e.g. ftp upload on the server, I am able to initiate a scan from the "Check Download Area" button of JDownloads > Control Panel, which updates most of the information of the files except the file modification date and the sha1 hash. I had to manually do this update in the database; the corresponding fields not updated are "file_date" and "sha1_value". Could you please have a look into this issue?

Steps to reproduce this issue:

- Modify/Update a file that was previously uploaded into a JDownloads category folder. In my case, the update is done by directly logging into the server and uploading via ssh.
- Login to the backend of the Joomla site and go to Components > JDownloads > Control Panel.
- Initiate a scan by clicking on the "Check Download Area" button and then "Run scan" on the popup window.
- JDownloads will update most of the information about the modified file, e.g. the md5 hash, the last-uploaded data, but not the file modification date or the sha1 value ("file_date" and "sha1_value" in the Joomla database, table "abcxy_jdownloads_files").

My configuration is as follows:

  - Joomla Version: ‎6.2.0
  - Installed jDownloads Version: 4.1.8 Stable - Date: 2026-11-11
  - PHP Version: 8.4
  - Do you use the standard backend template? Yes
  - It is a new Joomla 4 installation? This was indeed a new Joomla 4 installation that was updated progressively to 6.x

I believe I am using the default options/settings but I have attached my exported options file below. Happy to provide more information if needed.
  •  

ColinM

Mikest,
Think you should not use ftp to upload a file into an existing Download. 
Please try using Edit Download by clicking on the Download title in the backend.
There are six Tabs: General, Files Data, Additional Data, Publishing Options, Associations and Permissions.
  In the Files Data tab you are able to select a file to upload. In the sidebar of the General tab can set the Download to have a Updated symbol in the front end.
If you want to use ftp to upload then upload to the jD root.  The Files Data tab also allows selction of a file in the jd root.
Best wishes
ColinM
Colin M
  •  

mikest

Thank you for your answer Colin M. The reason for wanting to use ftp upload is to deal with large numbers of files in an efficient way, avoiding clicking on each one of the downloads and having to update information manually.

If the update of the "file_date" and "sha1_value" fields could be made to work the same way as the update of the md5 value field, this would save a lot of time for users and "uniformize the metadata update process" so to say (it's admittedly a bit odd that some fields in the database are updated after modifying files and some are not).

Best regards,

Mike St
  •  

ColinM

Mike,
If a file is uploaded to a web location with ftp or similar then when you create a Download you can specify the file location using the External File Link in the Files Data tab.

Is that what you do?
ColinM
Colin M
  •  

Arno

Hi Mike,
thank you for the detailed report. We confirmed the issue: after detecting changes to existing files uploaded via FTP/SSH, the scanner updated MD5 but left SHA1 and the file date unchanged.

We have corrected this and will send you a test version via PM. Please test it with a few files whose contents you change again, as files with an already updated MD5 will not trigger another refresh.

Please note that the file date is set to the time the scanner detects the change, not the original file timestamp.

The fix has passed our isolated tests. Your feedback from your Joomla installation would be appreciated.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •