Description
Problem
People can't put files into docs and this is a very common case.
Solution
Introduce /File command.
We store File same way as we store Image/Video.
It seems we can go with a very basic solution without preview.
NOTE: Decide how to store file size info.
Upload File
Who can upload a file?
Anyone with Edit access
How it works
Type / and select File command, show loader, add File into doc
DnD file (or several files) from OS into rich edit and it is uploaded and inserted
Loader indicator should be visible (we have it for images and videos already)
NOTE: People may try to find this by typing: Upload, File, Attachment, so these words should be synonyms and it should be possible to find File command using upl, fi, att, …
NOTE: When you upload image or video from File upload (non DnD) it is visible as File.
NOTE: Show some error on file that exceeds 1Gb.
Where it is available
documents
any rich text , including comments
~~inline comments ~~Can be skipped for now.
forms (shared and full-add)
Open File
Just click on a File to open it in a new tab
Download file
Just right click on a File to download it.
Delete file
Just delete a file block.
Move File block
It should be possible to move File block here and there.
~~Click and hold~~~~ on File to select it and move.~~
File block should behave same as any inline Mentions, so DnD is expected to not work for now
Ctrl+X + Ctrl+V should work (also, cut+paste via browser menu).
Ctrl+Z should also work when you delete file.
Search
Find file by name. It means if I inserted file xxx into document A, then when I will search for xxx I will see document A in search results.
Export
separate feature Files should be downloaded during export to markdown
🦄 Delete/Download File
Show Delete and Download icons on hover or in …?
🦄 Rename file
There should be Rename action for a file. When I select it, I see an input field where I can type new name of the file. On Save file name is updated in the rich edit.
NOTE: File renamed on the server.
🦄 Show specific icons for some popular file types
🦄 Size limits
Notion has 5Mb for free plan, unlimited for paid
Coda 10Mb for free plan, 250Mb for paid plans
🚨 Fibery - ?
Refs
Notion. Files icon is the same, uploaded to s3, shows size
Coda. Display option is interesting.
Roam preview some file types, like mp3 and pdf
Clickup. Delete and Edit file name via icons. Comment on PDF!
Monday. Shows file type icon. File is large. … serves as menu to delete and download files. Preview works and PDF also has comments
Tana. Small preview for images and placeholder icon for document. Shows full preview on expand
Design Proposal
[???]