btrask / stronglink

A searchable, syncable, content-addressable notetaking system
Other
1.04k stars 39 forks source link

Upload page #26

Open btrask opened 9 years ago

btrask commented 9 years ago

Right now the upload page "works," but it's ugly (completely unstyled) and difficult to use, because we trust the MIME type the browser tries to guess. It also doesn't convey progress information during the upload, which can be significant for large files.

We should use progressive enhancement to show a JavaScript progress bar (if enabled), and provide a way to set/override the MIME type in case the file extension is wrong or the browser doesn't know.

The server should try to detect the charset of text files if it isn't explicitly set. Right now we just assume everything is UTF-8.