fix other urls that should be https

This commit is contained in:
catarak 2016-09-08 22:15:29 -04:00
parent b004fd077f
commit 2d4cb76edf
2 changed files with 2 additions and 2 deletions

View file

@ -92,7 +92,7 @@ export function dropzoneCompleteCallback(file) {
if (!file.type.match(textFileRegex)) { if (!file.type.match(textFileRegex)) {
let inputHidden = '<input type="hidden" name="attachments[]" value="'; let inputHidden = '<input type="hidden" name="attachments[]" value="';
const json = { const json = {
url: `${s3Bucket}${file.postData.key}`, url: `${s3BucketHttps}${file.postData.key}`,
originalFilename: file.name originalFilename: file.name
}; };
// console.log(json, JSON.stringify(json), JSON.stringify(json).replace('"', '\\"')); // console.log(json, JSON.stringify(json), JSON.stringify(json).replace('"', '\\"'));

View file

@ -1,6 +1,6 @@
import React, { PropTypes } from 'react'; import React, { PropTypes } from 'react';
import Dropzone from 'dropzone'; import Dropzone from 'dropzone';
const s3Bucket = `http://${process.env.S3_BUCKET}.s3.amazonaws.com/`; const s3Bucket = `https://s3-us-west-2.amazonaws.com/${process.env.S3_BUCKET}/`;
import * as UploaderActions from '../actions/uploader'; import * as UploaderActions from '../actions/uploader';
import { bindActionCreators } from 'redux'; import { bindActionCreators } from 'redux';
import { connect } from 'react-redux'; import { connect } from 'react-redux';