Skip to content

Add +autoupload, and spell the rename parameter +rename again - #117

Merged
alistair3149 merged 2 commits into
masterfrom
autoupload-parameter
Oct 8, 2026
Merged

alistair3149 merged 2 commits into
masterfrom
autoupload-parameter

Conversation

@alistair3149

@alistair3149 alistair3149 commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Follows-up to #115

{{#batchupload:}} passes every argument after the first to the template, so the two parameters the upload
area keeps for itself start with +. Any other argument, + or not, still goes to the template.

  • The rename parameter is +rename only. Read the rename rule from the parser function's own arguments #115's plain rename= goes to the template, and was never released.
  • A bare +autoupload makes files start uploading as soon as they are added, without Upload being pressed; the
    empty area says so. Anything else, such as +autoupload=no, goes to the template. Holds and an invalid rename
    rule behave as if Upload had been pressed. Files added after Pause, or after the wiki's rate limit stopped
    the batch, wait for Upload; pressing it makes later files start on their own again. Special:BatchUpload is
    unchanged.

README and release notes are updated. Unit tests cover the Pause and rate-limit cases.

To check by hand, logged in, on a +autoupload area: dropped files upload without a press; after Pause, newly
dropped files wait with Upload offered.

AI-authored — Claude Code, Opus 5.5; agreed with @alistair3149 over several rounds (parameter over config, + kept after review of #115, README trimmed); diff not yet human-reviewed; Vitest, PHPUnit, PHPCS and PHPStan run locally, checked in Chrome (Vector 2022, also uselang=x-xss), CI green (22 checks).

alistair3149 and others added 2 commits October 8, 2026 12:56
Every argument of {{#batchupload:}} after the first is passed to the
template, so the + is what tells the upload area's own parameter apart
from the template's. A plain rename= goes to the template again, as it
did before the rule was read on the server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Files added to an upload area with +autoupload start uploading straight
away, without Upload being pressed, and the empty area says so. Files
added after Pause, or after the wiki's rate limit stopped the batch,
wait for Upload again. Special:BatchUpload is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alistair3149
alistair3149 merged commit 883a92e into master Oct 8, 2026
22 checks passed
@alistair3149
alistair3149 deleted the autoupload-parameter branch October 8, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant