Documents not getting uploaded to orders, Invoices etc.

When uploading any document type such as a pdf to an Order, invoice, RMA etc. anywhere. the upload finished with a red bar. Your refresh the page and the file is attached. When you clack on it to download, it fails. See Screenshot attached.