Skip to content

How to retrieve files by object id? #60

Description

@Myzel394

Sadly the documentation doesn't cover how to actually implement your own retrieve class.

I tried many solutions, but nothing worked. It would be nice if someone could add a more detailed explanation to the readme or explain it at least here.

Here are my tries, so you don't have to waste your time by trying out none working solutions:

    path("private-media/", MaterialDownloadView.as_view(), name="serve_private_file"),
    path("private-media/", include(private_storage.urls)),
    url(r'(?P<path>.*)', MaterialDownloadView.as_view(), name="serve_private_file"),
    path("private-media/", include(private_storage.urls)),
    url(r'(.*)(?P<path>.*)', MaterialDownloadView.as_view(), name="serve_private_file"),
    path("private-media/", include(private_storage.urls)),
    path("private-media/", MaterialDownloadView.as_view()),
    path("private-media/", include(private_storage.urls)),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions