For a formUpload() I’m currently using specific file content per user. With the increase of the number of (specific, authenticated) users this becomes undoable.
I’m looking at the filebody/spp functionality, but from what I read here it is depricated? (Also I couldn’t find if it is usable with formUpload(). I failed to figure out a way to use the apperent alternative, ElFileBody.
Could anybody give me a couple of pointers that could help me change the code below such that it uses a template file in the formUpload()?
Thanks Stepan, that got me in the right direction.
That is to say, I can use a ‘template’ now, and values inside the tempate are replaced, but I get some errors. I think these are not related to the EL syntax, but apperently to the file content (in relation to the bodyPart/RawFileBodyPart I use). This file however is used before by the previous implementation (formUpload) without errors.
Is my combination of bodyPart - RawFileBodyPart - ElFileBody correct?