Jump to content

Hook into Image Upload


Andreas Augustin
 Share

Recommended Posts

Hello!

is it possible to hook into the image upload and send the uploaded image to a thirdparty asset managment service?

After the image is uploaded on the server, I want to send it via an API to an other serrvice where I receive an URL which I want to save in the db to the image entry.

Any ideas?

Link to comment
Share on other sites

Other question.

What would the best way to extend an existing Image Field database table with a new column?

When I Upload the image in the hook to the thirdparty provider, I will get the URL after the upload is finished and want to save this to a column like "cloudinar_url")
 

Link to comment
Share on other sites

4 hours ago, Andreas Augustin said:

What would the best way to extend an existing Image Field database table with a new column?

As @horst said, ImageExtra is the way for now, but Ryan has stated it's in the plans for the core:

Quote

Custom properties for image/file fields. Currently file and image fields just support description and tags options as meta data to accompany a given file or image. We'd like to move towards supporting additional custom inputs for these types.

It's one of the key things I'd like to see implemented ASAP actually.

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...