# Vanilla2 Import - no avatars, no pdf attachments

**URL:** https://meta.discourse.org/t/vanilla2-import-no-avatars-no-pdf-attachments/35650
**Category:** Migration
**Tags:** vanilla
**Created:** [16.Ноябрь.2015 14:41:45 UTC](https://meta.discourse.org/t/vanilla2-import-no-avatars-no-pdf-attachments/35650 "2015-11-16T14:41:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![buzzdev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/buzzdev/32/122095_2.png) [@buzzdev](https://meta.discourse.org/u/buzzdev)
#### Post date: [16.Ноябрь.2015 14:41:46 UTC](https://meta.discourse.org/t/vanilla2-import-no-avatars-no-pdf-attachments/35650/1 "2015-11-16T14:41:46Z")

</div>

Hello Discourse,  
i’ve imported my existing Vanilla2 forum using the Vanilla2export.php and

> `RAILS_ENV=production ruby script/import_scripts/vanilla.rb /shared/export.csv`

However user avatars and attachments were not imported.  
On my original website i don’t see any GET requests for avatars and PDF attachments.

In the vanilla.rb importer, there is a reference to a photo:

> `u = { id: user[:user_id], email: user[:email], username: user[:name], created_at: parse_date(user[:date_inserted]), bio_raw: clean_up(bio_raw), avatar_url: user[:photo], moderator: @user_roles.select { |ur| ur[:user_id] == user[:user_id] }.map { |ur| ur[:role_id] }.include?(moderator_role_id), admin: @user_roles.select { |ur| ur[:user_id] == user[:user_id] }.map { |ur| ur[:role_id] }.include?(admin_role_id), }`

Is it how the import is supposed to work - meaning, no avatar and attachment import or am i doing something wrong here?

Or are there perhaps some post-import tasks, which i missed?

Many thanxs for help  
martin

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [16.Ноябрь.2015 14:46:25 UTC](https://meta.discourse.org/t/vanilla2-import-no-avatars-no-pdf-attachments/35650/2 "2015-11-16T14:46:25Z")

</div>

I’m afraid none of the importers we have for vanilla supports avatars/attachments. If you feel like adding it, we would happily merge a pull request 😉

---

<div class="post-metadata">

### Author: ![buzzdev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/buzzdev/32/122095_2.png) [@buzzdev](https://meta.discourse.org/u/buzzdev)
#### Post date: [16.Ноябрь.2015 15:01:03 UTC](https://meta.discourse.org/t/vanilla2-import-no-avatars-no-pdf-attachments/35650/3 "2015-11-16T15:01:03Z")

</div>

Many thanxs! 😄  
I was unsure if it is “works as designed” or a user (my) error 😊

Are there any guidelines regarding extending importers maybe?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [16.Ноябрь.2015 15:13:42 UTC](https://meta.discourse.org/t/vanilla2-import-no-avatars-no-pdf-attachments/35650/4 "2015-11-16T15:13:42Z")

</div>

> [@buzzdev](#):
>
> Are there any guidelines regarding extending importers maybe?

Not that I know of. Just improve the code of the `script/import_scripts/vanilla.rb` file 😉

---

<div class="post-metadata">

### Author: ![mmuyskens](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mmuyskens/32/67818_2.png) [@mmuyskens](https://meta.discourse.org/u/mmuyskens)
#### Post date: [09.Февраль.2017 03:29:32 UTC](https://meta.discourse.org/t/vanilla2-import-no-avatars-no-pdf-attachments/35650/5 "2017-02-09T03:29:32Z")

</div>

@buzzdev - did you come up with a solution? Curious if anything has changed as far as Vanilla avatar importing.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [18.Август.2022 02:39:01 UTC](https://meta.discourse.org/t/vanilla2-import-no-avatars-no-pdf-attachments/35650/8 "2022-08-18T02:39:01Z")

</div>


