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

From: updatemyself . <updatemyself@dont-contact.us>
Date: Fri, 18 Aug 2006 18:09:40 +0530

is this correct?
http://www.squid-cache.org/mail-archive/squid-users/200508/0503.html

i tried this way but its also not working
even squid fail to restart properly..

-----------------------------------------------------
acl my_net src 10.0.0.1/255.255.255.0
acl USERA src 10.0.0.1/255.255.255.255
acl UPLIMIT req_header Content-Length [5-9][0-9]{5,}
acl UPMETH method post
http_access deny USERA UPMETH UPLIMIT
http_access allow my_net
http_access deny_all
---------------------------------------------------

On 8/18/06, Henrik Nordstrom <henrik@henriknordstrom.net> wrote:
> 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:39:46 MDT

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