Skip to content

NovaGroup/creativeuploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Creative Uploader

This is a web service built in Go that returns JSON-encoded data of image file uploads. The images are creative files (banners) in JPG,GIF or PNG format (SWF to be added later on). ZIP files (containing images) are supported as well.

Running
  • go run creativeuploader.go --bind=0.0.0.0:1234
Usage
  • Upload the files to the web service, use the file parameter
  • Command line sample: curl http://localhost:1234/upload -i -F file=@~/image.gif
  • Sample output:
{"files":[{"name":"image.gif","content":"PxNLUi/y......","filesize":12345,"width":300,"height":250,"mime":"image/gif"}],"error":""}
  • If the error field is not empty, there was an error during the upload
  • To return an HTML page containing the JSON response in JavaScript instead, POST to /upload?iframe

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages