$form['search_results']['file_upload'] = array(
'#type' => 'managed_file',
'#title' => t('Thumbnail'),
'#default_value' => variable_get('file_upload'),
'#upload_location' => 'public://uploads/');
When using this, should managed_file create folder "uploads" if folder doesn't exists? If folder exists, regular users can't upload to that directory because of folder permissions, how to change that?