Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

File : Gif type nulled & Move Failed

When i try to move a gif file

C:\wamp64\servers\esport.local\app\models\data\File.php:150:
object(Phalcon\Http\Request\File)[347]
  protected 'error' => int 1
  protected 'extension' => string 'gif' (length=3)
  protected 'key' => string 'image.4' (length=7)
  protected 'name' => string 'photofunky.gif' (length=14)
  protected 'realType' => null
  protected 'size' => int 0
  protected 'tmp' => string '' (length=0)
  protected 'type' => string '' (length=0)

the realType is null & MoveTo is not working

Any Solution please ? Thanks.



116.1k
Accepted
answer

The error code is telling you the problem. https://www.php.net/manual/en/features.file-upload.errors.php

A value of 1 means the file is larger than PHP is configured to allow.

that make sense !

Thank you for this answer :D