Last modified: 2014-02-28 23:51:58 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40031, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38031 - VisualEditor: Initiate file upload by drag-and-drop
VisualEditor: Initiate file upload by drag-and-drop
Status: ASSIGNED
Product: VisualEditor
Classification: Unclassified
MediaWiki integration (Other open bugs)
unspecified
All All
: Low enhancement
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on: 38030
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-28 17:20 UTC by Brion Vibber
Modified: 2014-02-28 23:51 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Brion Vibber 2012-06-28 17:20:36 UTC
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.
Comment 1 James Forrester 2013-04-10 23:21:33 UTC
This is not on schedule for before the next big release; noting as such.
Comment 2 Patrick Earley 2013-07-10 02:39:33 UTC
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
Comment 3 Brion Vibber 2013-07-10 17:23:24 UTC
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.
Comment 4 James Forrester 2013-07-10 17:26:23 UTC
(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).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links