I wonder if anyone can help walk though implementing a file upload with me? Hopefully it will help others and fill in a few gaps in the documentation.
Basically this is where I would like to get to:
The database model is:
Resumes --< Documents +-- Files
So Resumes can have many Documents. Each Document can have one File.
All files will stored under assets in a date-stamped folder:
The datestamp itself is not important, but it helps spread the files over a multiple directories. The resumes folder will not be directly accessible - users always have to go through a page to ensure they have permission before they are able to access an uploaded file (generally a user can only access files that are attached to a Resume that they own, but some may be set to be publicly accessible - that's a detail for later).
Users can upload a file or replace an existing file. Users cannot browse the file directories to attach existing files or move files around between Documents.
For now I just want this working inside a default ModelAdmin page, so privileges are not really the issue at this stage.
That should cover the use-case, but I'll add anything I think of to this initial post.