Skip to content

bryant24/go-upload-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#go-upload-nginx

This package used for upload big file to nginx upload module extension.

You need install nginx upload module in sever env first.

##Install Install the package with:

go get https://github.com/bryant24/go-upload-nginx

Import it with:

import "github.com/bryant24/go-upload-nginx"

##Usage:

var uploader Uploader
uploader = Uploader{
	//upload api
	UploadApi:"http://localhost:8000/v1.0/upload",
	//target file name
	TargetFile:"c:\\test.zip",
	//chunk size:2MB
	ChunkSize:2,
}
uploader.SplitAndUpload()

About

use golang to upload file multipart

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages