A simple web service for submitting/validating file uploads and associated metadata. We provide a sample web-client along with the web server, potentially useful as a starting template.
You can view a minimalist demo of the client front-end. The demo submits user-specified form and file data to a Midway endpoint.
Modify the form elements in client/index.html
according to your needs.
The client assumes the server is running on localhost
using port 8001
. If
you run the server elsewhere, be sure to change the host
and port
vars in client/main.js
.
Install dependencies and fire up the server:
cd server
npm install # installs dependencies
npm run server # uses `localhost:8001`
... or ...
node server.js --host 127.0.0.1 --port 8001
... to specify a particular host or port.
See the tutorial for a step-by-step example walkthrough of customizing the client-side form elements and server-side upload action.
This repo is intended as a basic template for your own form/file uploading service. Follow these steps to fork and customize this template for your particular project:
gh-pages
branch. Your customized client should then be accessible at http://<username>.github.io/submit
, where username
is your github username.
See fork-n-go for more information on this style of project templating.