diff --git a/app/controllers/api/resources_controller.rb b/app/controllers/api/resources_controller.rb index a9dc90e..9121af6 100644 --- a/app/controllers/api/resources_controller.rb +++ b/app/controllers/api/resources_controller.rb @@ -1,4 +1,7 @@ class Api::ResourcesController < Api::BaseController + # Includes + include Api::Uploadable + # Search attributes search_attributes :name diff --git a/client/src/components/FileUpload.js b/client/src/components/FileUpload.js new file mode 100644 index 0000000..2c80da3 --- /dev/null +++ b/client/src/components/FileUpload.js @@ -0,0 +1,32 @@ +// @flow + +import React, { type ComponentType } from 'react'; +import { Button, Form, Item } from 'semantic-ui-react'; +import { withTranslation } from 'react-i18next'; + +const FileUpload: ComponentType = withTranslation()((props) => ( + + + + +