I exactly have a same question and I think I understand your instruction.
I tried to do the same but It does not record data. I thought file type might be an issue (I reckon that there are file, image and file url). I tried all 3 possibilities but still it doesn’t work.
It would be so helpful if you can check my logic and point out errors…
Thank you!
Ohyoon