Hi Felipe,
Greetiings!!!
Yes, you are right you can use the upload service and get the url from there and use that url into your custom code but you can not use the file object.
If you have any other queries please do feel free to reach out to us.
We will be happy to help you!
Regards,
Priyanka Singh
App42 Team