little_oak

Member
Jul 19, 2007
5
0
51
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.
;)
 

thewebhosting

Well-Known Member
May 9, 2008
1,199
1
68
Ok, but i need a limit for put files over 10 mbs in account :(
:(
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.
 

InstaCarma_Tech

Well-Known Member
Apr 22, 2009
227
1
68
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.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
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.
;)

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.