You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lars Nielsen Lind <mo...@worldonline.dk> on 2005/07/06 10:37:25 UTC

Fileupload - mysterious problem or?

 

Hi.

 

We have an Intranet we access via normal HTTP and HTTPS using the Internet.

 

When the users are using the system (FileUpload) from outside the company it
all works fine, and the log shows that ContentType is set to
application/octet-stream, and the files are uploaded to the server.

 

When the users are using the system (FileUpload) from pc's inside the
company, they get the following exception:

 

org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException:
the request doesn't contain a multipart/form-data or multipart/mixed stream,
content type header is null

 

It is possible to surf the Internet without problems from the company PC's.

 

Why is it that the FileUpload can get the ContentType from only some and not
all the users. It's the same system they are using?

 

What is it that I shall look for to fix the problem?

 

All help is appreciated.

 

Thanks,

 

Lars Nielsen Lind

 


Re: Fileupload - mysterious problem or?

Posted by Mikolaj Rydzewski <mi...@becomo.com>.
Lars Nielsen Lind wrote:

>When the users are using the system (FileUpload) from outside the company it
>all works fine, and the log shows that ContentType is set to
>application/octet-stream, and the files are uploaded to the server.
>
> 
>
>When the users are using the system (FileUpload) from pc's inside the
>company, they get the following exception:
>
> 
>
>org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException:
>the request doesn't contain a multipart/form-data or multipart/mixed stream,
>content type header is null
>  
>
Are you using some kind of proxy at company? It looks like proxy 
modifies users' requests.

-- 
Mikolaj Rydzewski  <mi...@becomo.com>
Becomo S.A.
tel. (12) 2927104