There was the following problem. 2 pictures are loaded.
Everything rises on this function.
move_uploaded_file($_FILES['goodsImage']['tmp_name'], $kernelVars['goodsDir'] . $imageName); Mistake
Warning: move_uploaded_file(/images/goods/2013_3.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpQAmkg5' to '/images/goods/2013_3.jpg' in $ _FILES content
array(2) { ["goodsImage"]=> array(5) { ["name"]=> string(5) "3.jpg" ["type"]=> string(10) "image/jpeg" ["tmp_name"]=> string(14) "/tmp/phpQAmkg5" ["error"]=> int(0) ["size"]=> int(32111) } ["goodsImageNew"]=> array(5) { ["name"]=> string(5) "4.jpg" ["type"]=> string(10) "image/jpeg" ["tmp_name"]=> string(14) "/tmp/phprgw9UP" ["error"]=> int(0) ["size"]=> int(48431) } }
/images/goods/writable? I doubt something. Add to the destination path the full path to the site folder. - teran/images/goods/where you are trying to write the file, and you write about/var/www/example.com/images/goodsyou realize that these are different ways at all? - teran