I use Amazon’s Textract and Rekognition services to process uploaded JPG and PNG files on my app. They don’t support HEIC but my users don’t know that so I want to intercept the upload and check and convert as needed before resuming the Livewire execution.
Not sure how to best go about with this in Livewire. Do you guys have any suggestions or leads that I can pursue? Thanks!
Edit:
@this.upload('photo', file, (uploadedFilename) => {
// Success callback.
}, () => {
Should I use this approach instead? Hook into Javascript and ask another method to inspect the uploaded file? Seems like a dirty approach.