Skip to content

Allow UploadFile widget dynamic links #129

@dlee1579

Description

@dlee1579
Image

I am currently using the UploadFile widget to manage file uploads to S3. I am saving only the file's location in S3 (e.g. s3://bucket_name/key_name) but to view the actual file in S3 I would have to generate a presigned url using boto3's generate_presigned_url() due to AWS resource permissioning.

I have used this pattern before in conjunction with the @display decorator for individual model admins. Can the file upload widget be modified to allow another override on the uploaded file so that the displayed upload link is dynamic?

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