Skip to main content.
home | support | download

Back to List Archive

Re: Indexing XLS Files

From: Bill Moseley <moseley(at)>
Date: Fri Jul 18 2003 - 16:30:08 GMT
[back to the list]

On Fri, Jul 18, 2003 at 11:57:25AM -0400, wrote:
> Sorry.  I made a mistake.  It's "wrong content type", not invalid content
> type.

Ok, so a grep finds that in the example file.  
Does that make sense for what you are doing?  Are you using -S prog with

Or are you using -S http method?  If that's the case then the message 

   "Skipping %s:  Wrong content type: %s.\n"

My guess that's it.

And that's because the content type doesn't begin with "text/" or 
there is not a filter selected for the URL (which is based on file 
extension not content-type which doesn't work very well).

So back to your original problem.

I'll assume you are using -S http and that you are also using the 
SWISH::Filter set of modules (since you mentioned 
the SWISH::Filter::XLtoHTML module).

Yes, that was correct to add the mime type to that file, although I'm 
not sure what you added.  Your message said:

  We got it to work by modifying the XLtoHTML function to include
  both application/ and application/

which look the same to my eyes.

But if you don't have Spreadsheet::ParseExcel installed then 
that code will never run.  Do you have that module installed?

Bill Moseley
Received on Fri Jul 18 16:30:53 2003