Limit Upload Size
If you allow users to upload files to your server, you can increase security and help to prevent DOS (denial-of-service) attacks by limiting the file upload size using htaccess.
LimitRequestBody 10240000
The file upload size is specified in bytes. The above example is for about 10MB. It is important to note that some web hosting companies will place their own restriction on file upload sizes, so if you can not upload files as large as you have specified, be sure to check with your web host to see what kind of file upload restriction they may have set on the server.




