Download & Extend

Count ignores files where path != filename

Project:Download Count
Version:6.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:Chill35
Status:closed (fixed)

Issue Summary

Somehow, a file I uploaded had "_0" appended to its file path, but not the name. Since the file_download hook sends the file path, not the name, the module fails to count the downloads.

Comments

#1

Somehow, a file I uploaded had "_0" appended to its file path.

That's because a file already exists with that name in your folder.

If you want to update that file, you can overwrite it using FTP.

Alternatively, you can DELETE (safely) the attachement, and save your node. Then reopen your node and attach the new (updated) file.

The download_count will not be reset for that file name, it will resume counting downloads for that updated file, picking up where it left off.

#2

You say that I count downloads using the filename rather than the path. And that in some cases filename is NOT path.

There's a bug there.

I will look into this, thank you.

#3

I just changed a few things in the module to hopefully fix the bug.

Please install 6.x-1.3 and let me know. Your feedback would be _greatly_ appreciated.

Thank you! :-)

#4

Assigned to:Anonymous» Chill35
Status:active» fixed

#5

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

nobody click here