Fixed upload dir path according to symfony upgrade
Added key check