Skip to content

mnelli19/upload-flowjs-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample code for Node.js

This sample is written for Node.js and requires Express to make the sample code cleaner.

To install and run:

cd samples/Node.js
npm install
node app.js

Then browse to localhost:3000.

File chunks will be uploaded to samples/Node.js/tmp directory.

Enabling Cross-domain Uploads

If you would like to load the flow.js library from one domain and have your Node.js reside on another, you must allow 'Access-Control-Allow-Origin' from '*'. Please remember, there are some potential security risks with enabling this functionality. If you would still like to implement cross-domain uploads, open app.js and uncomment lines 24-31 and uncomment line 17.

Then in public/index.html, on line 49, update the target with your server's address. For example: target:'http://www.example.com/upload'

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors