Title: WP Export/Import Uploads
Last modified: August 18, 2016

---

# WP Export/Import Uploads

 *  [leeloo5e](https://wordpress.org/support/users/leeloo5e/)
 * (@leeloo5e)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/wp-exportimport-uploads/)
 * I was exporting from my old WP to my new WP at a new Webhoster. But there is 
   a problem with importing the “post_type”s “attachment”. There is something like“
   [http://yourdomain.de/?attachement_id=78&#8221](http://yourdomain.de/?attachement_id=78&#8221);
   in the column “guid”, but it has to be something like “[http://yourdomain.de/wp-content/uploads/2007/07/pic.jpg&#8221](http://yourdomain.de/wp-content/uploads/2007/07/pic.jpg&#8221);
   or else. Also the “post_mime_type” will not be inserted into the new WP database
   for attachments. So I have to upload all files again and put it into my posts.
   Do you have an idea when this will be fixed or how can I fix this easily?

Viewing 1 replies (of 1 total)

 *  Thread Starter [leeloo5e](https://wordpress.org/support/users/leeloo5e/)
 * (@leeloo5e)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/wp-exportimport-uploads/#post-597462)
 * I made some changes in wp-admin/export.php line 190 I inserted
    `<wp:post_mime_type
   ><?php echo $post->post_mime_type; ?></wp:post_mime_type>` to get the post_mime_type.
   In wp-admin/import/wordpress.php I inserted at line 273 the following: `$post_mime_type
   = $this->get_tag( $post, 'wp:post_mime_type' );` and at line 309 just inserting`'
   post_mime_type'` to put the post_mime_type into the new wordpress database. But
   the column ‘guid’ is still set to “[http://www.domain.de/?attachment_id=78&#8221](http://www.domain.de/?attachment_id=78&#8221);
   or something else. I’m going crazy. I still can’t find where I have to make the
   changes to set the right “guid” for “attachment”s.
 * Any Suggestions?

Viewing 1 replies (of 1 total)

The topic ‘WP Export/Import Uploads’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [leeloo5e](https://wordpress.org/support/users/leeloo5e/)
 * Last activity: [18 years, 10 months ago](https://wordpress.org/support/topic/wp-exportimport-uploads/#post-597462)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
