Page MenuHomePhabricator

Allow ConfirmEdit to trigger for file uploads
Open, Needs TriagePublic

Description

Summary

ConfirmEdit (CAPTCHA extension) does not currently have the ability to show a CAPTCHA during a file upload. This should be added to support T426126: Implement CAPTCHA support in the Upload Wizard

Background

  • ConfirmEdit (CAPTCHA extension) currently lacks the ability to show CAPTCHA for a file upload
  • This task focuses on adding the ability to require a CAPTCHA to upload a file
    • A failed solve of the CAPTCHA should block the upload along with the associated edits performed during an upload
    • A successful solve of the CAPTCHA should allow the upload along with any associated edits performed during an upload

Acceptance criteria

  • It is possible to trigger a CAPTCHA during a file upload
  • A failed CAPTCHA solve during a file upload blocks the uploading of the file and any associated edits
  • A successful CAPTCHA solve during a file upload allows the file to be uploaded along with any edits made as part of the upload

Event Timeline

@Dreamy_Jazz I think an important question to ask is at what stage do y'all expect to trigger this? Do we want to prevent the file from reaching WMF servers at all? (in which case we should trigger it before the UploadStash step) Or do we want to just prevent on-wiki uploads? (i.e., trigger it at the last step). My personal vote (from a usability POV) is for the former since that is early in the workflow, and it is easier for somebody to restart the flow completely.