Question: I had uploaded two PDF files to the server in php. but they are uploaded correctly but when uploading larger files I get an error. Iam using mysql server

How to upload large files(100 mb) in php?

Answer: 
From the php.ini default settings:

```
; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 2M

```

Change this value if you want larger uploads.

I am not entirely sure, but I do not think that ini\_set would work in this situation. You will need direct access to php.ini
To add to Tom van der Woerdt's answer about upload\_max\_filesize:

Chances are, default execution limits will also have to be changed, or the script will timeout while you're uploading a large file.

Also look into:

`post_max_size`
`max_input_time`
`max_execution_time`