Page MenuHomePhabricator

Generate upload log entry when duplicate file uploaded
Open, LowPublic

Description

Author: Eugene.Zelenko

Description:
I think will be good idea to generate upload log entry when duplicate file uploaded.

I this case such uploads will be visible to admins and automatic bot processing will be possible without traversing all files.

See also T16171 for other useful application of such logging.

See Also:
T16171: Allow Special:FileDuplicateSearch to match against previously deleted images
T21565: Add more variables to AbuseFilter file uploading evaluation

Details

Reference
bz14417

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:08 PM
bzimport set Reference to bz14417.
bzimport added a subscriber: Unknown Object (MLST).

How do you define a "duplicate"? By checksum?
Which exact "upload log" (URL) does this refer to?

Eugene.Zelenko wrote:

I think checksum is best way to find duplicate.

I meant type=upload for log.

Could duplicate file detection be done in AbuseFilter, which would allow logging, and pre-programmed management? It appears it has the sha as a variable. See
https://www.mediawiki.org/wiki/Extension_talk:AbuseFilter/Rules_format#file_sha1