Apply template to file uploaded with Uniform

Hi,

I have a Uniform form on the front end of my site for people to upload files to. This is working great, and I have the files being uploaded in the correct directory.
I now need to apply a template to the uploaded file - what is the best way of doing this with Uniform?

From a quick look at the code, it seems that Uniform doesn’t use Kirby’s upload method, so there is no hook that is triggered.

You would have to get the file after the form stuff and update the metadata with $file->update(), I think.

Ah thanks for the steer, that is why my hook wasn’t working. I now have the file uploading correctly and the template being applied.