Page MenuHomewrite.as

Drag-and-drop uploading
Open, NormalPublic

Description

Overview

Users should be able to drag and drop an image into the editor to upload it.

Implementation

When a user drags and drops a file into the editor:

  • Start uploading
  • Insert placeholder Markdown for the photo into the body of the post, e.g. ![filename.png](upload://filename.png) like Discourse does

Once the upload finishes, replace e.g. upload://filename.png with the live photo URL.

If the upload fails, let's just remove the Markdown, as Discourse does. We want to be as unobtrusive as possible, so let's start with this and see how it turns out.

TODO: figure out backend implementation

Related Objects

StatusAssignedTask
OpenNone
OpenNone
Openqwazix

Event Timeline

matt created this task.Thu, Jun 27, 7:44 PM
matt updated the task description. (Show Details)Thu, Jun 27, 7:47 PM
matt raised the priority of this task from Normal to Needs Triage.
matt changed the task status from Open to Waiting.Fri, Jun 28, 11:50 AM
matt moved this task from Far Future to After Soon on the WriteFreely board.Mon, Jul 8, 4:02 PM
matt changed the task status from Waiting to Open.
matt assigned this task to qwazix.
matt triaged this task as Normal priority.

We can at least get started on the frontend now.