0

Currently I am using in PHPH ini setting upload_max_filesize to define deny fiel upload over a specific amount.

This solution works but it is global.

I would like to know if it is possible in PHP to detect file size (without using JS on the client) and abort the request before the actual file upload is completed on the server (so I can save some bandwidth).

PS: I can also use a library for this task.

Thanks for your help.

Radex
  • 7,815
  • 23
  • 54
  • 86

0 Answers0