Skip to content

Add S3ImageField to show/replace image file after uploading to S3 #388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

blag
Copy link

@blag blag commented Jul 4, 2025

This PR refactors a bit to add an S3ImageField, which extends S3FileField. It also comes with its own form field and widget that shows/replaces the user's selected image file after it is directly uploaded to S3.

Tested against a bucket in Digital Ocean Spaces.

For my next PR, I'll be extending this to add the ability for users to crop a selected user before it's uploaded to S3. But I wanted to get feedback early.

@blag blag force-pushed the add-image-field branch from b3caf67 to 2e0e43f Compare July 7, 2025 06:28
@blag blag force-pushed the add-image-field branch from 2e0e43f to 8c22009 Compare July 7, 2025 10:15
@blag blag force-pushed the add-image-field branch from 8c22009 to e9a03d6 Compare July 7, 2025 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant