Hey there @sct and welcome to the forum!
Yes, you're in the right track and the logic is sound. The only thing that I would add is that you can fetch the URL of the uploaded file by doing something similar to what shown in this post
Good luck and do write if you have any other questions!