I
I
iandriyanov2011-12-14 08:14:30
PHP
iandriyanov, 2011-12-14 08:14:30

File upload limit?

Good morning!

Tell me, experts on web servers (Apache and Nginx), I need to limit the amount of attachment on the site. Now there is a restriction on the proxy server (Nginx), but if the specified bar is exceeded, the server refuses to connect and the site page crashes. Although it would be more logical to give the user a message about exceeding the specified parameter. What question:

- Only php takes on this role?
- php&Apache + proxy?
- Or is it a function of checking for a downloaded file in the core of the site?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
skvot, 2011-12-14
@skvot

PHP has two configs for setting the size of the uploaded file: upload_max_filesize and post_max_size. You can also check the size of the file that they are trying to download from the script.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question