Feature proposal #7929open
Implement upload staging
Currently if you upload something to CB Activity for example it uploads and stores on file and in the database. If you then cancel the activity entry the upload was still done. Implement staging uploads. This means it should send back all the necessary data for the display of the upload for its container and a modal window, but should not be stored in the database yet. The storage should then be processed at the time of the activity entry being stored for example.
This is necessary for private message attachments as we don't want to upload something for a message that may not be sent.
We do not want the upload to happen twice so likely the files should be moved to a secured Joomla cache directory since we want the upload to persist past the PHP operation (otherwise PHP will remove it from PHP tmp). This will allow the upload to happen once, it remain until we can process it, and if not processed will be cleared by cache clean up.
No data to display