fileupload

package module
v0.0.0-...-5cee83e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

README

Godoc Reference Go Report

fileupload

This go package provides an easy way to upload files to hosts like https://0x0.st/

Documentation

Overview

Package fileupload provides an easy way to upload files to a filehost.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UploadFile

func UploadFile(file *os.File) (string, error)

UploadFile takes a file and uploads that file to a file host. It returns the url to the uploaded file as a string and any error encountered.

func UploadToHost

func UploadToHost(url string, file *os.File) (string, error)

UploadToHost takes a url and a file as arguments and uploads the file to the provided url with HTTP POST. It returns the url to the uploaded file as a string and any error encountered.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL