How do I store a copied file into a different field
I have started building my first module inspired by the videos on this awesome site! :)
What I am trying to do is upload a managed lossless audio file (flac) then convert it to a lossy mp3 then save each file in its own field.
- Upload flac (field_data_field_flac)
- Convert flac to mp3
- Save mp3 to its own field field_data_field_mp3 and save the uploaded flac to field_data_field_flac
I have looked for hours if not day's for the right way to do the last step, save the new mp3 its own field. I hope all this makes sense, I would appreciate any input.