core.files.storage._save()

_save(name, content)

Called by Storage.save(). The name will already have gone through get_valid_name() and get_available_name(), and the content will be a File object itself.

Should return the actual name of name of the file saved (usually the name passed in, but if the storage needs to change the file name return the new name instead).

doc_Django
2016-10-09 18:34:48
Comments
Leave a Comment

Please login to continue.