CRGabo Posted May 31, 2018 Share Posted May 31, 2018 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? Thanks in advance! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now