Skip to content

bramcordie/blobload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blobload

HTML5 file uploader using blob and Node.js.

Before you upload your blob

Dependecies

Run npm install socket.io to install Socket.io.

Directories

Create a temp(orary) and comp(leted) folder in the same directory as the app.js file.

Checksum

Although there are proper javascript implementations of MD5 and other hashing algorithems, I think they are overkill for this usecase. You have to calculate the checksum server-side anyway, because you can't trust the client. I propose to just readout the middle half-megabyte of the files as text (UTF-8) and concatenate it with the total file size in bytes. This will be easier to calculate on the client and will serve the purpose just fine.

About

HTML5 file uploader using blob.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published