2👍
Since you want to return a value before you know the S3 storage location it clearly can’t be the S3 storage location. The best you can do is return a value the user can use to get the S3 storage location from your server when it eventually gets stored (or the information that it’s still waiting to be stored).
Source:stackexchange.com