upload-gdrive

command module
v0.0.0-...-99488f3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 11 Imported by: 0

README

upload-gdrive

HTTP listener to receive file by POST and submit directly to Google Drive

Configuration

How to use

using cURL:

curl -i -X POST -H "Content-Type: multipart/form-data" -F "file=@myfile.doc;filename=myfile.doc" http://server/upload/

using Java:

try {
    FileInputStream fstrm = new FileInputStream("myfile.doc");
    HttpFileUpload hfu = new HttpFileUpload("http://server/upload/" + "myfile.doc", "myfile.doc", "myfile.doc");
    hfu.Send_Now(fstrm);
} catch (Exception e) {
    // error
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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