Page MenuHomePhabricator

Make Upload Wizard configurable to upload a single file and set api upload target
Closed, ResolvedPublic

Description

Author: mdale

Description:
The upload wizard should support configuration in its invocation to limit it to a single file upload and set an api upload target.


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=44817

Details

Reference
bz27316

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:23 PM
bzimport added a project: UploadWizard.
bzimport set Reference to bz27316.
bzimport added a subscriber: Unknown Object (MLST).

neilk wrote:

This needs to be fleshed out a bit more, but here's my guess at what you want...

  • single "upload a file" button.
  • the second it is filled, the upload starts
  • once complete, we go directly to a licensing stage (the wizard is already smart enough not to give you the option to defer licensing if there's only one.)
  • then we describe it
  • then we get the typical "use" page.

So the real thing you want here is to be able to upload instantly and advance to the next page the minute that completes. Is that about right?

neilk wrote:

Oh, and you can already set the "target" (the API url?) via the configuration passed to the UploadWizard object. Barring crossdomain issues I think that's already there.

mdale wrote:

Yes, your description is more complete explanation of whats needed.

It seems like part of this bug report is a duplicate of bug 26167, a patch for which is awaiting review: https://gerrit.wikimedia.org/r/7251

As for the single-file configuration, I'll put it on my to-do list.

Since the "start-immediately" option already exists (see above comment), I added in the "single-file" option in this patch: https://gerrit.wikimedia.org/r/9273

Now there's a configuration variable (true by default) that enables multiple-file sessions. Set it to false to disable.

Gilles raised the priority of this task from Medium to Unbreak Now!.Dec 4 2014, 10:27 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Medium.Dec 4 2014, 11:22 AM