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

Popular posts from this blog

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -