Page MenuHomePhabricator

(T5187) Allow uploading files directly when editing a comment without drag&drop/copy&paste
Needs RevisionPublic

Authored by matmarex on Jan 27 2015, 6:50 AM.
Referenced Files
Unknown Object (File)
Sat, Apr 6, 12:22 PM
Unknown Object (File)
Sun, Mar 31, 11:09 PM
Unknown Object (File)
Mar 21 2024, 2:15 AM
Unknown Object (File)
Feb 3 2024, 2:02 AM
Unknown Object (File)
Jan 18 2024, 10:53 PM
Unknown Object (File)
Dec 25 2023, 2:43 AM
Unknown Object (File)
Dec 20 2023, 10:41 PM
Unknown Object (File)
Nov 30 2023, 12:16 AM

Details

Summary

Using HTML 5 File API together with a regular <input type=file /> field. This won't help the IE8s of the world, but will help users of non-standard, but modern operating systems and browsers.

This is not necessarily a complete proper patch, but it's worth reviewing in my opinion. Problems:

  • PhabricatorFileUploadDialogController is unused now and I'm scared to try deleting it.
  • This probably doesn't play very well with multiple Remarkup textareas on the page.
  • There is no way to discover drag&drop and copy&paste uploads now, without the warning dialog.
Test Plan

Try adding a comment, click the 'cloud' icon, use the file field that will appear.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 4070
Build 4083: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

matmarex retitled this revision from to (T5187) Allow uploading files directly when editing a comment without drag&drop/copy&paste.
matmarex updated this object.
matmarex edited the test plan for this revision. (Show Details)
matmarex added a reviewer: epriestley.
matmarex set the repository for this revision to rP Phabricator.
matmarex added projects: Files, Remarkup.

We could desperately use this at https://phabricator.wikimedia.org to allow mobile phone & tablet users to upload screenshots. Any chance of getting review?

If something isn't a priority to build, it generally also isn't a priority to review or maintain: we would still be spending time on something low-priority instead of something high-priority. See "Not a Priority" in Contributing Code.

Obsoleted by upstream changes.

This revision now requires changes to proceed.Jan 11 2017, 3:36 PM