summaryrefslogtreecommitdiff
path: root/app/frontend/components/FileUploadSecureFileSize.php
blob: 1e60c9a5b29bfee8f39b0b6b4fee1d9054a968bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

Prado::using('Application.components.FileUploadSecureOption');

trait FileUploadSecureFileSize {

    use FileUploadSecureOption;

    public function getFileSize() {
        if ($this->getIsSecure()) {
            return filesize($this->getLocalName());
        }
        return parent::getFileSize();
    }

}

?>