Exporting csv url

When i use the Baserow hosted version the url will look something like this.

https://baserow-media.ams3.digitaloceanspaces.com/export_files/76fdde99-5b39-4db9-9a99-135de3950505.csv

When i use the self hosted version the url looks like this

https://s3.fr-par.scw.cloud/xxxxxxxxxxxxxxxx/export_files/fdf5aeba-dc8c-4535-b998-7966c1c0649f.csv?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=SCWNFYX6MYF3TKZAH513%2F20220304%2Ffr-par%2Fs3%2Faws4_request&X-Amz-Date=20220304T085611Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=90ca80de280ab41c716aa8b4b6b32ed8ac07e079e987345588f41e9c6d6f6ea5?dl=export%20-%20DrugsInfoNL.csv

If i remove this part ?dl=export%20-%20DrugsInfoNL.csv is works.

Or if i remove everything but this

https://s3.fr-par.scw.cloud/xxxxxxxxxxxxxxxx/export_files/fdf5aeba-dc8c-4535-b998-7966c1c0649f.csv

It also works. Any idea why this happens?

I use the xxxxxxxx to hide my url :wink:

Ah, I see. We’ve recently introduced user file previews. This will allow you to immediately preview PDF, video, audio, etc files in Baserow directly. Because sometimes we want to offer the file as download and sometimes we need it to render inline, we’ve introduced the dl query parameter. If it’s present, the expect the file to be offered as attachment/download. Because you’re not offering the files on the same domain, but rather via an S3 bucket, you need to change some settings.

Does it work if you set the DOWNLOAD_FILE_VIA_XHRenvironment variable to 1? I’m not sure how you self host, so I can’t advice on how to set the environment variable. You must also set the allowed CORS origin to your self hosted URL, so https://YOUR_BASEROW_URL.com. This is probably a setting that you can set in your S3 configuration.

Let me know if it works!

My son made it work :grin: :+1: