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

Phalcon 2.0.3 Call to undefined method Phalcon\\Http\\Request\\File::getRealPath()

I just upgrade to 2.0.3, and got error on my previous code


PHP Fatal error:  Call to undefined method Phalcon\\Http\\Request\\File::getRealPath()

getExtension() works fine, but not getRealPath();

thanks



4.0k
edited Jul '15

In 1.x version Phalcon\\Http\\Request\\File had a method getRealPath() (inherited from SplFileInfo) but 2.x version not extended SplFileInfo

1.x version Phalcon\Http\Request\File

2.x version Phalcon\Http\Request\File



15.2k

Thanks, I checked the doc and I thought it would be moved to somewhere else. I'll just use getTempName instead.

In 1.x version Phalcon\\Http\\Request\\File had a method getRealPath() (inherited from SplFileInfo) but 2.x version not extended SplFileInfo

1.x version Phalcon\Http\Request\File

2.x version Phalcon\Http\Request\File