Title: add attachment
Last modified: August 20, 2016

---

# add attachment

 *  [Maiti](https://wordpress.org/support/users/maiti/)
 * (@maiti)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/add-attachment/)
 * Hello, please help me with this problem – I’m upoading pictures to server folder
   and than attaching it to the post. But the script attaches only the original 
   picture. What I need is that there would be also thumbnail, medium and large.
   What I need to change in the code to make manually create small, medium and large
   files and attach them to the post.
 * here’s the code:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/add-attachment/#post-2417090)
 * If you upload images via WordPress, these smaller images are created automatically.
 *  Thread Starter [Maiti](https://wordpress.org/support/users/maiti/)
 * (@maiti)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/add-attachment/#post-2417096)
 * I need to uplad images not using wordpress interface
    and when I do it with the
   help of the code above it does not create it
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/add-attachment/#post-2417099)
 * > I need to uplad images not using wordpress interface
 * Why?
 *  Thread Starter [Maiti](https://wordpress.org/support/users/maiti/)
 * (@maiti)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/add-attachment/#post-2417104)
 * because I use uploadify, and attach their code watermark
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/add-attachment/#post-2417106)
 * Then you will need to upload the various image sizes manually. Or you can look
   at writing your own multi-image-creation script but that’s not going to be easy.
 *  Thread Starter [Maiti](https://wordpress.org/support/users/maiti/)
 * (@maiti)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/add-attachment/#post-2417364)
 * ok, what I need change in the code, that small, medium and large files attach
   to the post
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 *  [Vrefr](https://wordpress.org/support/users/vrefr/)
 * (@vrefr)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/add-attachment/#post-2417384)
 * Did you try to upload all needed sizes and than attach all of them to the post?
   
   Like you attach original. Then to upload small and attach it in the same way?
   And same for medium and for large?
 *  Thread Starter [Maiti](https://wordpress.org/support/users/maiti/)
 * (@maiti)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/add-attachment/#post-2417401)
 * yes, but when I upload and attach image to post with different sizes and with
   names. Example:
    9741540.jpg 9741540-150×150.jpg these pictures just loaded separately
   from each other

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘add attachment’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 3 participants
 * Last reply from: [Maiti](https://wordpress.org/support/users/maiti/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/add-attachment/#post-2417401)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
