Upload file from AWS to collection

And I have also tried to use an UploadButton but I can’t seem to set the url of what to upload, it has to be the user who chooses a file.