Well I've found the problem and solution,
Seems like files in containing non-english were posted in reversed order, so instead of abc.jpg, i got jpg.abc...
So the file failed to pass my security checks all the time, I've got that solved now, thanks for the help thought :)