edemaine / coauthor

Coauthor supercollaboration/discussion forum
MIT License
249 stars 34 forks source link

Adding file to existing message #588

Closed edemaine closed 1 year ago

edemaine commented 2 years ago

Currently, if you want a message that has text and a file attached, you need to attach the file and then write the text. This is a bit unflexible.

It would be nice to allow creating a message without attachment, and then adding an image to it. Later we could consider pulling an attachment out of a message (maybe into a child post), but that can be considered later. (It's not currently possible, but replacement is possible.)

One natural place for this would be where the "Replace File" button is on messages that have files. Maybe it could be called "Add File". Lily suggests that this might be a more intuitive notion of "attach", though this terminology isn't backward compatible.

An alternative place would be in the Reply/Attach dropdown, where we could try to distinguish between "[New] Reply with Attachment" vs. "Attach to this message".

Placement is also related to #268.

We've also discussed adding multiple files to a single message, but this is a much bigger (database-level) change, and possibly multiple messages would make more sense for that (so that each can be titled etc.).