title: Is there a way to upload a file from view in django?
body: <p>I know that you can upload files using a ModelForm in django, but is there a way to do it through a view instead? For example, after a form is completed, I want an automated process that will create a file (based on input from the form) and upload it to my media directory, but the file itself isn't submitted by the user who is submitting the form.  So in the form submission view, I would like to write code that generates a non-text file (video) and uploads it to my media directory.  My media files are hosted on amazon S3 if that makes a difference.  Is this possible in django, and if so, how?  Thanks in advance.</p>