Skip to content

Minimum demo of file upload in Play framework with simple word count

Notifications You must be signed in to change notification settings

joyfulvillage/DemoFileUpload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a minimum demo of file upload in Play framework with simple word count
=====================================

Simply startup the application with Play 2.2.1
And hit the browser with "localhost:9000" for demo
A simple file upload form is presented and select a text file to upload.
The result is in JSON format:
{
    filename: [Filename that user upload],
    wordcount: [Number of words in the file],
    countMap: {
        [word] -> [word occurance]   
    }
}
    

TODO:
Logging - No logging was done
Filetype validation - now is "assuming" user upload a valid text file
More test case - that's always better

About

Minimum demo of file upload in Play framework with simple word count

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages