My requirement is that,I wanna upload the files of size more than upload_max_filesize
in php
without changing the upload_max_filesize
in php.ini
.
Without changing the upload_max_filesize
, input filefield
is not accepting the files by showing error.
Is there any chance to achieve this? Please suggest me to sort out this issue.Thanks in advance.
Asked
Active
Viewed 34 times
0

Nagaraju Chimmani
- 35
- 10
-
Not sure but i think this answer is helpful to you.[https://stackoverflow.com/a/27911708/4781696] – HP371 Dec 28 '18 at 12:27
-
[File upload using chunk](https://www.codewife.com/php-large-file-upload-in-chunks/) This will might be helpful for you. – Yogendrasinh Dec 28 '18 at 12:30
-
yeah it is fine but could not able to download the source code – Nagaraju Chimmani Dec 29 '18 at 06:32
1 Answers
0
you can upload the file of size more than upload_max_filesize
in php.ini
.
create a file .htaccess
and paste the following code
php_value upload_max_filesize 10M
and save it in your project folder,that's it works fine.

rch
- 345
- 1
- 6
- 20
-
this `.htaccess` will effect only the containing folder and its all sub folders – rch Dec 31 '18 at 05:50