0

I'm using an assets directory with Amazon S3 and I have to manually update the indexes through the control panel after uploading files externally. Does anyone know if it is possible to do anything custom to do this on login. Or is it possible to set up a URL that could be hit with a cron or manually.

One idea I had failing any of the above would be to do a custom plugin with just a button to make it a bit quicker than the current method through the settings.

1

Updating Asset indexes is pretty coupled to the tool in the Settings portion of the control panel.

But if you wanted to try and duplicate that functionality in a plugin, you could have it listen for the onLogin event to do your business.

  • I'll take a look. It's a shame there isn't a way for assets to detect uploads externally with S3. I'd upload through Craft but these files are over 500MB so it's not reliable enough through a browser. – Andy Mar 17 '15 at 14:17
  • @Andy did you ever figure this out? I'd like to do the same thing... – James Smith Sep 21 '17 at 10:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for?Browse other questions tagged or ask your own question.