| | 29 | The upload workflow should look like... |
| | 30 | |
| | 31 | 1. File upload should be a straightforward file upload with normal auth checks and normal processing of the posted data. |
| | 32 | 2. a. When called via ajax then the ID of the newly created file should be returned, |
| | 33 | b. When called via WUI then it should also be given the url to redirect to after the file upload has been handled - the id will be passed as a query param. |
| | 34 | 3. The resource save should check whether it has a file id and in that case updates the file object to point to the resource. |
| | 35 | |
| | 36 | This should enable: |
| | 37 | |
| | 38 | * Separate file upload into a user's temporary store, either individually or as a batch. |
| | 39 | * Creating resources and simply choosing from previously uploaded, unassigned files |
| | 40 | * Adding files/data to a resource after the fact. |
| | 41 | |