From 1c08a33b92f72d77d6c5f1fce916e2cd7c655ff0 Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Tue, 21 Jul 2015 16:54:24 -0400
Subject: Fixing file uploads and previews for new /team/ URL structure

---
 web/react/components/file_preview.jsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'web/react/components/file_preview.jsx')

diff --git a/web/react/components/file_preview.jsx b/web/react/components/file_preview.jsx
index 17a1e2bc2..553293d2b 100644
--- a/web/react/components/file_preview.jsx
+++ b/web/react/components/file_preview.jsx
@@ -19,6 +19,7 @@ module.exports = React.createClass({
             var filenameSplit = filename.split('.');
             var ext = filenameSplit[filenameSplit.length-1];
             var type = utils.getFileType(ext);
+            filename = window.location.origin + "/api/v1/files/get" + filename;
 
             if (type === "image") {
                 previews.push(
-- 
cgit v1.2.3-1-g7c22

