php-"PHP" uchome how to get free space when uploading video

Source: Internet
Author: User
Keywords Uchome PHP
uchomephp

Just graduated from work for 4 months, not much contact, the recent company a project with Uchome, completely do not understand where is where, want to ask you, in the upload video when the query appears in the user's free space?

        $userid = $_POST['supe_uid'];        $space = getspace($userid);        $maxattachsize = checkperm('maxattachsize');//单位MB        echo 'maxattachsize:'.$maxattachsize.'addsize:'.$space['addsize'].'attachsize:'.$space['attachsize'].'filesize:'.$FILE['size'];exit;        if($maxattachsize) {//0为不限制            if($space['attachsize'] + $FILE['size'] > $maxattachsize + $space['addsize']) {                echo "剩余空间不足,上传失败";                exit;            }        }

$space [' addsize '] seems to be the user's personal extra space, but what about the user group's space? Is that the $maxattachsize? But this is set to 1 m, it is also 200M ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.