Logo

Stop Forum Spam

Forum



#1 2008-01-11 8:21 am

fspamlist
Member
Registered: 2008-01-05
Posts: 17
Website

Export search results: CSV problem

When I downloaded some search results in CSV, the file I got had no extension? Maybe for ease of opening, you could make the file .txt or .csv

Is this how it's supposed to work?

Offline

 

#2 2008-01-11 1:46 pm

Russ
Administrator
Registered: 2007-11-28
Posts: 166

Re: Export search results: CSV problem

Right now it just sends the output to the browser as text/plain. You could save it from your browser as a file with any extension you like.

I could, instead, use the content-disposition header to automatically have the file downloaded, with a proper file name and extension and all that. Would that work better?

Offline

 

#3 2008-01-11 3:05 pm

fspamlist
Member
Registered: 2008-01-05
Posts: 17
Website

Re: Export search results: CSV problem

It's up to you.. but I don't usually change the filename of a file I'm downloading..only the location.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson



Donate Valid XHTML 1.0 Transitional RSS 2.0 Feed