We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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.



125.7k
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