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.