Git Product home page Git Product logo

Comments (3)

czpython avatar czpython commented on July 24, 2024 1

Agreed, filer already has public/private file handling (or at least a branch once did). Best would be to reuse that.

from aldryn-forms.

jmelett avatar jmelett commented on July 24, 2024

@stefanfoulis IIRC @Chive mentioned once that he addressed this issue by using a custom bucket via django-storages.

from aldryn-forms.

Chive avatar Chive commented on July 24, 2024

Yes, it's quite easily achievable in general:

First, install and configure https://github.com/etianen/django-s3-storage. Then:

# initialize the storage
from django_s3_storage.storage import S3Storage
safe_storage = S3Storage()

# use it in your model
class MyModel(BaseModel):
    uploaded_file = models.FileField(
        _('Uploaded File'),
        blank=True, null=True,
        storage=safe_storage,
        upload_to='uploads'
    )

I'm unsure about this is best integrated with aldryn-forms though :-)

from aldryn-forms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.