Skip to content
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

Adding blurhash to json field #2743

Open
vizakenjack opened this issue Jun 3, 2024 · 0 comments
Open

Adding blurhash to json field #2743

vizakenjack opened this issue Jun 3, 2024 · 0 comments

Comments

@vizakenjack
Copy link

vizakenjack commented Jun 3, 2024

I have a project with users, one user can have up to 3 photos with original size, medium size and small size. I use Postgres and jsonb field, and it works perfectly with 'mount_uploaders'.

How can I add a blurhash without creating additional fields or tables?

In my current structure, I have something like this:

[
  {
    "url": "...",
    "medium": {
      "url": "...",
    },
    "small": {
      "url": "...",
    },
  },
...
]

Is it possible to add custom attributes in this json? Tried to find something in wiki, but only found a solution where additional database fields are being added.

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

No branches or pull requests

1 participant