Support

Home Forums Event Espresso Premium Browser is Automatically Opening CSV File

Browser is Automatically Opening CSV File

Posted: September 25, 2020 at 10:14 am


djgore

September 25, 2020 at 10:14 am

Hi there,

I need to be able to export the registrations list prior to event day. Sometimes I need to export a filtered list as well. When I do, the browser automatically opens the CSV file instead of downloading it to my computer. How can we fix this?


Tony

  • Support Staff

September 28, 2020 at 6:28 am

Hi there,

So do this happen with both the unfiltered and filtered CSV or just one of them?

Which browser are you using?

It could be the MIME type set on your server or the browser itself simply set to automatically open the CSV’s.

When you export the registrations doe EE go to another ‘batch’ page that shows a progress bar or does it export on the same page you click the export button on?


djgore

September 28, 2020 at 1:29 pm

Hi Tony,

The file opens automatically for both types, unfiltered and filtered.

I have tried using Chrome and Safari, and I get the same results.

I do see the progress bar for both types of files, and then it exports on that same page.

In case it helps (FYI), exporting CSV files used to work just fine.


Tony

  • Support Staff

September 29, 2020 at 4:11 am

I do see the progress bar for both types of files, and then it exports on that same page.

Ok, the progress bar means you are using the ‘batch’ export feature (and you should be) but we already set a MIME type within the temp folder we crate for the csv.

In case it helps (FYI), exporting CSV files used to work just fine.

Did anything change between now and then? New plugins etc?

Do you mind if I try an export so I can view the request/response headers from the site? If thats ok you can send temp login details using this form:

https://eventespresso.com/send-login-details/


djgore

October 1, 2020 at 3:09 pm

Hi Tony,

Come to think of it, we did migrate the website to a new host, which is about the time it started happening.

I sent in the temp login. Thanks!


Tony

  • Support Staff

October 1, 2020 at 3:26 pm

Yeah, the MIME type is incorrect, it’s coming through as text/HTML.

You can try adding:

AddType application/ms-excel .csv

to your sites .htaccess file in the root directory or open up a ticket with your host and request they set this up for you.

The support post ‘Browser is Automatically Opening CSV File’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso