Skip to content

Question: Does it support custom location? #4

@mahmudkabir

Description

@mahmudkabir

Does it support custom locations like 'photos/%Y/%m/%d'

Like can i use the following?

from randomfilestorage.storage import RandomFileSystemStorage

random_storage = RandomFileSystemStorage(location='/media/my_files**/%Y/%m/%d**')
class Example(models.Model):
my_file = FileField(storage=random_storage)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions