Jump to content

Automatically uploading themes to S3


Recommended Posts

Hello! I am currently looking for a way to automatically upload images to S3 whenever I modify a theme. This images are saved under /themes/THEME_NAME/img. I can upload products without a problem since I can attach my code to the addProduct hook. In this instance however, I haven't found a hook that does the trick. If I were to make my own hook how can I contextualize it so it is only triggered whenever the "upload file" button is pressed?

I think I need to modify the source file that handles the upload. I think i need to add my code directly there, however I would prefer not to do that. I would rather solve this problem with just a moule. Is it possible?

Captura.PNG.0d540cca2e280f202c9d4612e1659982.PNG

Thanks in advance!

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
×
×
  • Create New...