# 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:** [November 16, 2015, 2:41pm UTC](https://meta.discourse.org/t/vanilla2-import-no-avatars-no-pdf-attachments/35650 "2015-11-16T14:41:45Z")\
**Posts on this page:** 1\
**Showing post:** 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:** [November 16, 2015, 2:41pm 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

---

_[View the full topic](https://meta.discourse.org/t/vanilla2-import-no-avatars-no-pdf-attachments/35650)._
