I'm working on a b2b web application where users might want to upload files for several purposes: assigning images and/or documents with specifications to their products or businesses, attaching files to private messages (PDFs, DOCs, XLSs), etc.
Now, instead of allowing the traditional method of file upload in each form, I'm wondering if it would be better to let the user have a repository where he could upload whatever file he wants, limiting the repository to a certain max size (depending on if the user owns a premium account or not) and then letting him link the file he wants from each form.
So, for example, in the Send private message
form, instead of displaying the typical choose file input, I'd display the user's repository so that he selects the file he wants to attach, or even adds a new file to it in the moment and selects it.
Is this a good approach?
The only downside I detected so far is that users who have JavaScript disabled in their browsers would have to manually specify the ID of the file.