Needs server to determine path for file - how to give path to client to show preview?

I am making a custom Uppy UI here, and want each customer to store the images in a separated s3-folder (=path-prefix).

If I add a customer-folder to the s3-path on the server-side, how do I send the new null path back to the client - so the client can show the preview?