Unable to upload .jpg file
Notice: This thread is very old.
- romanko
- Member | 4
Hello,
I apparently can't correctly handle uploaded .jpg file.
Using this method (isOK()): https://api.nette.org/…oad.php.html#…
I get false for any .jpg file uploaded. Any other file type (including .jpeg)
works well in my case (isOK() == true).
Has somebody experienced similar problem?
I am running Nette 2.2.4 on Apache 2.4.9, Linux Mint 17.2 64bit
Last edited by romanko (2015-12-30 22:43)
- pata.kusik111
- Member | 78
Try to call the method getError
on the FileUpload and compare
the value with the constants on PHP Manual Upload Errors. This will give you a clue as what
is wrong with the upload (viz Nette
API Documentation)