keystone-storage-adapter-s3 icon indicating copy to clipboard operation
keystone-storage-adapter-s3 copied to clipboard

pre:upload option is gone?

Open manuelxaguilar opened this issue 7 years ago • 1 comments

Hello, before the S3 storage adapter it was possible to use a pre:upload hook to do stuff with the file before uploading. I'm just wondering if that's still a possibility. Thanks!

manuelxaguilar avatar Oct 03 '17 03:10 manuelxaguilar

I've just hit this, previously I could do:

Sermon.fields.audio.pre('upload', function(item, file, next) {

Which would allow me to update the ID3 tags of an MP3 file just prior to upload... currently it just gives:

TypeError: Sermon.fields.audio.pre is not a function

jamlen avatar Aug 12 '18 20:08 jamlen