Hi Jo, Well, it it just a zip file. That is what does not make a lot of sense.
It has the zip extension. ???? I would agree that we should probably just ignore it, or allow it. I tried adding it to the main web.xml file, but this did not work. Regards, Jason On Tue, Mar 30, 2010 at 3:03 PM, Jo Størset <stor...@gmail.com> wrote: > > 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 -- -- Jason P. Pickering email: jason.p.picker...@gmail.com tel:+260968395190
_______________________________________________ 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