Title: wp_handle_upload
Last modified: August 20, 2016

---

# wp_handle_upload

 *  [anton7249](https://wordpress.org/support/users/slieptsov/)
 * (@slieptsov)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/wp_handle_upload-2/)
 * Hello, I am trying to add a custom logo upload to default twentyeleven theme 
   options but it does not work. So what I am doing:
    I added input file in theme-
   options like this:
 *     ```
       function cottoncandy_settings_field_logo() {
       	$options = cottoncandy_get_theme_options();
       		?>
       				<input type="file" name="import" size="40" />
   
       				<img src="<?php echo $file['url'] ?>" />
       		<?php
       }
       ```
   
 * Then created a function for file upload according to WP Codex – [http://codex.wordpress.org/Function_Reference/wp_handle_upload#Source_File](http://codex.wordpress.org/Function_Reference/wp_handle_upload#Source_File)
 *     ```
       function cottoncandy_settings_field_logo() {
       	$options = cottoncandy_get_theme_options();
       		?>
       				<input type="file" name="import" size="40" />
   
       				<img src="<?php echo $file['url'] ?>" />
       		<?php
       }
       ```
   
 * But files don’t uploads to upload directory but there are no errors. Could anybody
   tell me what I am wrong? Thanks.

The topic ‘wp_handle_upload’ is closed to new replies.

## Tags

 * [upload](https://wordpress.org/support/topic-tag/upload/)
 * [wp_handle_upload](https://wordpress.org/support/topic-tag/wp_handle_upload/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [anton7249](https://wordpress.org/support/users/slieptsov/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/wp_handle_upload-2/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
