Search squid archive

Re: how to use req_mime_type tag to restrict File Upload

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux