Title: Uploading file from another server
Last modified: August 20, 2016

---

# Uploading file from another server

 *  [blatan](https://wordpress.org/support/users/blatan/)
 * (@blatan)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/uploading-file-from-another-server/)
 * Hi all.
    I want to upload an image from url to my website using wp_handle_upload.
   I don’t know how to convert the url of the image to $file array (the first argument).
   Have you got any ideas? Should I use another function? Thanks in advance for 
   helping me.

Viewing 1 replies (of 1 total)

 *  Thread Starter [blatan](https://wordpress.org/support/users/blatan/)
 * (@blatan)
 * [14 years ago](https://wordpress.org/support/topic/uploading-file-from-another-server/#post-2671475)
 * The solution is a function media_sideload_image. The topic can be closed.

Viewing 1 replies (of 1 total)

The topic ‘Uploading file from another server’ is closed to new replies.

## Tags

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

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [blatan](https://wordpress.org/support/users/blatan/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/uploading-file-from-another-server/#post-2671475)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
