Skip to content

Commit

Permalink
#2 Start to develop FileUpload
Browse files Browse the repository at this point in the history
  • Loading branch information
jonisaa committed Aug 10, 2016
1 parent f3f5694 commit c1ab9c9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/components/field/FileUpload.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
import React, { Component, PropTypes } from 'react';
import fetch from 'isomorphic-fetch';

export default class FileUpload extends Component {
static propTypes = {
url: PropTypes.string.isRequired
};

onDrop = (files) => {
const { url } = this.props;

fetch()
.then(response => response.json())
.then()
.catch()
};

render() {
return false;
}

}

0 comments on commit c1ab9c9

Please sign in to comment.