php - Upload files in Symfony without Doctrine -
in symfony controller can:
$file = $request->files->get('file');
if don't have problems, if uploads return errors?
for example if send large file $file null, if use clear php:
$_files['file']['error']
then have error. good, how can in symfony?
$request->files->get('file')->geterror();
it not working because $request->files->get('file')
null.
is possible handle errors $request->files
in symfony?
Comments
Post a Comment