Upload files of more than 10MB with php to a database

0

I'm working with a Windows hosting of Godaddy.

The application can upload and process files no larger than 2mb, but files larger than this, truncates the script and gives me this error

  

"C: \ php56 \ php-cgi.exe - The FastCGI process exceeded configured   activity timeout "

My php .ini has these parameters

  

upload_max_filesize = 64M

     

post_max_size = 64M

     

max_execution_time = 10000

     

max_input_time = 10000

already verify these parameters in the php info and if they are

What could be what I'm missing?

    
asked by Dam A. 17.11.2017 в 00:33
source

2 answers

0

Suddenly some restriction like this inside your PHP:

   if($_FILES["archivo"]["type"] == "application/pdf" 
      && $_FILES['archivo']['size'] <= 1048576)
   {
     ....
   }

Where :

  

1048576 es = a 1mb

Or depronto in your php.ini has to be entered in one of these ways:

In the binary system (bits and bytes) it is like this

  

KILOBYTE = 1,024 = 2 TO THE POWER 10 (1024 bytes that is the most   next to 1000, kilo means thousand)

     

MEGABYTE = 1,048,576 = 2 TO THE POWER 20 (1048476 bytes)   next to 1,000,000, mega means million)

Also, have you already tried restarting server services?

    
answered by 17.11.2017 в 00:50
0

check your php ini

; Maximum allowed size for uploaded files.
upload_max_filesize = 40M

; Must be greater than or equal to upload_max_filesize
post_max_size = 40M
    
answered by 17.11.2017 в 03:54