Using theme_get_setting getting empty value I am using theme settings in my Drupal 7 theme to provide a theme option as follows.

$form['mythemename_settings']['loaderImage'] = array(
  '#type' =&gt; 'fieldset',
  '#title' =&gt; t('Loader Icon'),
  '#collapsible' =&gt; TRUE,
  '#collapsed' =&gt; FALSE,
);

$form['mythemename_settings']['loaderImage']['loader_img'] = array(
  '#type' =&gt; 'file',
  '#title' =&gt; t('Upload Loader Icon Image'),
  '#default_value' =&gt; theme_get_setting('loader_img','mythemename'),
  '#description' =&gt; t("Upload your desired loader icon."),
);


I then use theme_get_setting('loader_img') to call the value of the setting, but it returns an empty value. I have also added settings[loader_img] = "loading.gif" in my theme.info file, but I am still getting only the empty value.

My intention is to add a Image browse button which can be accessed in the admin end  and can be changed time to time. I have uploaded the image but I couldn't find my image inside my projects. Do I need to set a path for the image to get uploaded?

Where are the values of the settings page get stored in the database? I checked my whole database but I couldn't find the value I saved.
Change the type of image input to managed_file. Check updated code below:
$form['mythemename_settings']['loaderImage'] = array(
  '#type' =&gt; 'fieldset',
  '#title' =&gt; t('Loader Icon'),
  '#collapsible' =&gt; TRUE,
  '#collapsed' =&gt; FALSE,
);

$form['mythemename_settings']['loaderImage']['loader_img'] = array(
  '#type' =&gt; 'managed_file',
  '#title' =&gt; t('Upload Loader Icon Image'),
  '#default_value' =&gt; theme_get_setting('loader_img','mythemename'),
  '#description' =&gt; t(&quot;Upload your desired loader icon.&quot;),
  '#upload_location' =&gt; 'public://images/',
);

Values of theme settings are stored in variable table. Check theme_&lt;THEME_NAME&gt;_settings under name column &amp; value is stored as serialized array in value column.
Update 1
To get file object use following sample:
$file = theme_get_setting('loader_img','tmhgs');
$file = file_load($file);