Re: [squid-users] how to use req_mime_type tag to restrict File Upload

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Fri, 18 Aug 2006 14:23:00 +0200

On Fri, 2006-08-18 at 17:08 +0530, updatemyself . wrote:
> Hi all,
>
> how to use req_mime_type tag to restrict File Upload

Using what method?

POST or PUT?

req_mime_type should work reasonably well for PUT, but won't work at all
for forms based upload using POST. This is due how HTTP is being used in
the two forms of upload.

But even for PUT it won't be very reliable. req_mime_type matches what
the client claims the file type is. This may differ both from what the
actual file type is and from what the web server will consider that the
file type is.. Most servers completely ignore the mime type of PUT
requests, just storing the file as-is.

Regards
Henrik
Received on Fri Aug 18 2006 - 06:22:03 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Sep 01 2006 - 12:00:02 MDT