Unable to upload .jpg file

3 years ago

romanko
Member | 4
+
0
-

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)

3 years ago

pata.kusik111
Member | 72
+
0
-

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)