1

I am doing the drag image using dropzone plugin .

Here everything is working fine ,but when i am going to upload a large file ,ajax response is null .For small mb image file it is coming fine ,response is coming and working fine.

I have echoed the

pr($_FILES);exit;//for large image file it is null
if (!empty($_FILES)) {

}
else
{

}

I am getting an empty array .Here ajax post is coming fine. I am not getting what is the error , For small size image enter image description here For large size image enter image description here Any suggestion ? Thank you

sradha
  • 2,216
  • 1
  • 28
  • 48

1 Answers1

0

By configuration, PHP only allows to upload files up to a certain size.

You can edit your php.ini file and set

memory_limit = 32M
upload_max_filesize = 24M
post_max_size = 32M

then restart your server

If you are trying to upload file greater than 2 GB. Then you should consider the memory usage of such a script.

Then you have to user chunked upload.More details : Handling plupload's chunked uploads on the server-side and here : File uploads; How to utilize "chunking"?

Community
  • 1
  • 1
Suraj
  • 2,181
  • 2
  • 17
  • 25