Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 887 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 887 Bytes

cowboy fileupload sample

Cowboy 0.9 release and master branch support different multipart request data processing APIs. Cowboy is a good erlang http library. But the author did not provide enough sample projects and user guides about http file upload processing.

This sample project provides a http file upload sample.

Reference to the user guide cowboy multipart request manual in cowboy master branch.

build and run

This sample followed up cowboy sample project packaging rules.

  1. clone this project

    > git clone https://github.com/yaocl/cowboy_fileupload.git
    
  2. compilation

    > make
    

    It will get the dependent projects including cowboy, cowlib, ranch and the tool: relx.

  3. run

    > _rel/bin/upload_example console
    
  4. testing

    Browse the web page http://localhost:8000/