We currently have this in the app but we should integrate it into the gem since the uploader javascript relies on it.