In my website, users are uploading audio files. I wish to convert all supported audio files to MP3.
I prefered to make the convertion in the filefield_clean function because in that moment I am also able to confirm that the file format uploaded is supported. In addition I am using S3 so it just before to file is uploaded to my S3 Storage.
My problem is how can I redirect the physical file used in the InMemoryUploadedFile ? I need to redirect it to my new converted file.
Is it possible to accomplish this in a clean operation ? If not, what is the best approch ?