Count ignores files where path != filename

RoboPhred - May 26, 2008 - 00:47
Project:download_count
Version:6.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:Chill35
Status:closed
Description

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.

#1

Chill35 - May 27, 2008 - 04:19

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

Chill35 - May 27, 2008 - 04:29

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

Chill35 - May 27, 2008 - 05:03

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

Chill35 - June 3, 2008 - 18:16
Assigned to:Anonymous» Chill35
Status:active» fixed

#5

Anonymous (not verified) - June 17, 2008 - 18:21
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.