OSX-style filename truncation with JS
I was recently implementing the specs for a file uploading UI when I encountered this interesting bit. (Fig. 1)
Once a file has been uploaded, the box in Fig. 1 needs to appear in the UI displaying a file type icon, the name of the user…