Hi there.
I have an entity (vehicle) with a to n composition to documents (uploaded pdf’s).
Everything works fine with the uploading, preview, storing … process.
Now I have to accept additional doc-formats (e.g. jpg).
The idea is to do the conversion during the upload process, so the user doesn’t bother at all what file format he has to deal with as input (the accepted one’s are filtered), the uploaded target document is always a pdf.
I’ve done the format conversion logic already as a service, it’s fine.
Where I’m stuck is to extend (or hook-in to) the upload process with the conversion, handling the two files
(source and target) in the correct way.
I’ve tried several ways to hook in, but nothing worked through the whole process.
Did someone already implemented a concept like this?
Can it be done in one continuous process, and how?
Any idea is appreciated!
Thanks, Willi