Den 30. mars 2010 kl. 13.42 skrev Jason Pickering:

> I got this message while trying to import a DHIS 1.4 file..
> 
> * WARN  13:37:02,027 Content type not allowed: application/octet-stream 
> (ImportAction.java [http-8080-5])
> 
>  I suspect this might be a Tomcat security issue, but at least we should 
> document it.
>  
> Suggestions?

Basically, when uploading a file, the client (browser) reports a content type 
for the file uploaded. In this case your browser is reporting a file of type 
application/octet-stream, which the code does not allow (currently it accepts 
"application/x-zip-compressed", "application/zip", "application/x-gzip" and 
"text/xml").

This is a bit of a tricky area... I you are sitting on windows, I would guess 
you were uploading a file without a file type extension. As a quick fix, try to 
add the correct file type extension or use a different browser (though I guess 
we only officially support firefox for now).

I guess we maybe shouldn't care about the browser reported content type here. 
We know what we are looking for, so we should have other means of checking the 
content type. Bob has been looking at the import module architecture, maybe he 
has an opinion when he's back from Barcelona.

Jo

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to