How to customize the upload function for the upload file in Rainlab Builder? I need one upload file field to local and another upload file field to S3 in one form

there’s nothing to pin it on. I need help