How to put self-define restriction on uploading binary file

Author Message

Bill Smith

Thursday 21 December 2006 6:59:38 pm

For example, the upload file cannot be the exe file.

or for each user, the total uploading file size cannot exceed the defined total size limit

So where should I put these restriction?

I have gone through the kernel files related, but unluckily I didn't find where the uploading

action occurs.

I try to put the restriction in validateObjectAttributeHTTPInput method in

\kernel\classes\datatypes\ezbinaryfile\ezbinaryfiletype.php

but seems it only pop up the error message, but the content are still uploading.

Anyone can help? Thanks very much.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.