The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to Limit file size?

Discussion in 'General Discussion' started by little_oak, Jun 2, 2009.

  1. little_oak

    little_oak Member

    Joined:
    Jul 19, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi, how to limit file size for clients?

    For example, my customer him 4 files with extension .WMV, but i need limit this type to MAX 10 mb, is possible?

    Thanks.
    ;)
     
  2. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    397
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
  3. little_oak

    little_oak Member

    Joined:
    Jul 19, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    ok, i need limit in update!

    Ok, but i need a limit for put files over 10 mbs in account :(
    :(
     
  4. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    If you have a WHM access then you can edit disk quota for a particular account from WHM -> List accounts -> Click on "quota" tab for the user -> set the new disk limit -> Save.
     
  5. InstaCarma_Tech

    InstaCarma_Tech Well-Known Member

    Joined:
    Apr 22, 2009
    Messages:
    228
    Likes Received:
    1
    Trophy Points:
    18
    I guess you are not talking about the total disk space allotted to an user.
    Instead you want to limit the individual file size.
    If you are uploading the files via some php script then you can alter the variable 'upload_max_filesize' in the 'php.ini' file.
    If something else is being used then it is possible that its configuration can be customized accordingly.
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator

    This functionality is not native to cPanel/WHM at this time. If you do implement such functionality yourself, be sure to account for the various methods files can be uploaded such as Web Disk, FTP, SFTP, File Manager, Legacy File Manager and website scripts designed for uploading files.
     
Loading...

Share This Page