VisualEditor: Initiate file upload by drag-and-drop
OpenPublic

Description

Once basic image support is included, and there's some integration with UploadWizard or similar, it should be possible to initialize the upload tool with drag-and-dropped image files.

This would allow simply dragging one or more files from your file manager over to the spot in the document where you want them, ending up with a single image or gallery at the end.

Compared to bug 38030, needs to be able to initialize the wizard with given File objects received via a drop.


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

bzimport added a project: VisualEditor-MediaWiki.Via ConduitNov 22 2014, 12:46 AM
bzimport set Reference to bz38031.
brion created this task.Via LegacyJun 28 2012, 5:20 PM
Jdforrester-WMF added a comment.Via ConduitApr 10 2013, 11:21 PM

This is not on schedule for before the next big release; noting as such.

bzimport added a comment.Via ConduitJul 10 2013, 2:39 AM

pearley wrote:

Request for similar functionality made at MediaWiki today:

Hi, I see a number of requests for the ability to easily upload local images (from our local HD to Wiki I guess). I'd like to add my vote for this request. How is this progressing? How would it work? Simply browse for an image locally and then go through the captioning, sizing, aligning, positioning, licensing — then upload for it to appear immediately in the desired location with also the hi-res and info immediately in Wikimedia Commons?

Robertwhyteus (talk)‎20:27, 9 July 2013

brion added a comment.Via ConduitJul 10 2013, 5:23 PM

I think roughly what we'd want to happen is something like this:

  • user drag-and-drops an image file from Explorer/Finder/file manager into the document.
    • if possible, show a rectangular placeholder box around the cursor position while dragging
  • on drop, save the cursor position so we know where in the document to insert...
  • ...and spawn the UploadWizard or similar interface, handing it the file we've received to start the actual upload process, select a license, save a description etc.
  • At the end of the UploadWizard, instead of showing you the link to the file we transition straight back to the editor...
  • ...and you can then modify the positioning/sizing/caption/etc with the VisualEditor's existing dialogs.

If using UploadWizard itself is not feasible at this stage, a lightweight uploader UI similar to what's available on mobile might be good -- this does a cross-origin POST to Commons for the upload, so we don't have to leave the page or open an iframe or anything weird like that.

Jdforrester-WMF added a comment.Via ConduitJul 10 2013, 5:26 PM

(In reply to comment #3)

If using UploadWizard itself is not feasible at this stage, a lightweight
uploader UI similar to what's available on mobile might be good -- this does
a cross-origin POST to Commons for the upload, so we don't have to leave the
page or open an iframe or anything weird like that.

Opening up an iframe isn't too hard for VisualEditor (every dialog is one already), but re-using UploadWizard (and refactoring it so this is possible) seems like a much better solution than writing our own.

There's wider product questions about whether to allow uploading to local, or just to Commons (given that relatively few wikis allow local uploads, and that those are only meant to be used in special circumstances, making it too easy to upload copyvios/etc. and having licence proliferation might be the wrong approach).

Jdforrester-WMF moved this task to Backlog on the VisualEditor workboard.Via WebNov 24 2014, 4:19 PM

Add Comment