MM-2033 fixes img showing infinity progress

This commit is contained in:
=Corey Hulen
2015-08-27 11:05:18 -07:00
parent db7e8c1288
commit 30f22ec9c7
2 changed files with 2 additions and 0 deletions

View File

@@ -347,6 +347,7 @@ func getFile(c *Context, w http.ResponseWriter, r *http.Request) {
}
w.Header().Set("Cache-Control", "max-age=2592000, public")
w.Header().Set("Content-Length", strconv.Itoa(len(f)))
w.Write(f)
}

View File

@@ -248,6 +248,7 @@ module.exports = React.createClass({
// display a progress indicator when the preview for an image is still loading
var percentage = Math.floor(this.state.progress[this.state.imgId]);
if (percentage) {
content = (
<div>
<img className='loader-image' src='/static/images/load.gif' />