12345678910 |
- def store_upload(pub, file_data, file_name, meta_data=None):
- """Create a unique folder for an uploaded file and begin editing it for
- publication.
- """
- upload = new_upload(pub, file_name, meta_data)
- write_file(file_data, upload.file_path)
- upload.status = "Queued for processing"
- upload.save()
- return upload
|