# Onebox not embedding locally uploaded media files

**URL:** <https://meta.discourse.org/t/onebox-not-embedding-locally-uploaded-media-files/26238>\
**Category:** Bug\
**Created:** [March 11, 2015, 9:34pm UTC](https://meta.discourse.org/t/onebox-not-embedding-locally-uploaded-media-files/26238 "2015-03-11T21:34:49Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![optimus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/optimus/32/39715_2.png) [@optimus](https://meta.discourse.org/u/optimus)\
**Post date:** [April 22, 2015, 2:27pm UTC](https://meta.discourse.org/t/onebox-not-embedding-locally-uploaded-media-files/26238/11 "2015-04-22T14:27:23Z")

</div>

Great news, this is so so awesome @riking 😃!!! I am really eager to try out the fix this in my Discourse installation now. I took a look at fix on Github. Can you confirm if I just need to make those changes to the 2 files and I will be good to go?  
-remove one line and add 2 lines to app/assets/javascripts/discourse/lib/onebox.js  
and  
-add 19 lines to lib/onebox/engine/discourse\_local\_onebox.rb

 ![](https://global.discourse-cdn.com/meta/original/3X/2/7/278a952de951ca6394ea602a1cd848dfd0bdf7ef.jpg) 

Thanks again!  
-Chris

---

_[View the full topic](https://meta.discourse.org/t/onebox-not-embedding-locally-uploaded-media-files/26238)._
