I can not understand what the problem is.

I load the gif, output its data (size / type) via $ _FILES ['file'] ['type'] and $ _FILES ['file'] ['size'], but this is what the script produces: size 0, file type = = ""

Perhaps this is due to the fact that the size of the gifs> 1mb? Checked on several gifs, with a small size loaded normally.

  • print_r ($ _ FILES ['file']) outputs an array of data? What exactly? - koza4ok
  • Yes, it does. Array ([name] => name.gif [type] => [tmp_name] => [error] => 1 [size] => 0) - rimlin

1 answer 1

Check the php.ini file for the maximum upload file size. (or phpinfo field - upload_max_filesize) as well as max size of POST requests

  • Damn, thank you. Cheto tupanul not thought at first. Increased the parameter, now everything is ok. - rimlin pm