Fixed files app upload
Added error handling in case of empty directory to ajax upload processor