its the same but it checks against $value['name'], which is the filename. This way we can limit the extension via /^.*\.png$/ for example.