There are dozens of posts on SO about Django, that describe how to use forms and models, or file streams, to upload files (e.g. images or text files). Two SO posts in particular represent good examples of this:
The first example uses a model to store the file. The second example opens a file stream and writes the contents to disk, chunk by chunk.
What I want to do is upload a binary file (e.g. Excel spreadsheet) and save it to a local directory (i.e. not in a database), without using a model and without opening a file stream. Is this possible? Can you provide a minimal example?
I've read the Django docs concerning file uploads and storage, but I've only found examples that rely on models or file streams. Is it not possible to directly save an uploaded file to disk?