File Upload Controller

Upload File to AWS Bucket

Path: /api/content/nugs/upload

Method: POST

Example Http Request

POST /api/content/nugs/upload HTTP/1.1
Content-Type: multipart/form-data; boundary=6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
X-WAL: 0x1371699df678b0d92025bc20fdb91fdef8ce9444
X-SIG: 0xb21fb02c91dbd6a22714f68fbff5e1c29582891c343950b071ff79ff0a9d2053693d9ef3195c0612ca365bebdcc17ccbaf1e1ddb7b95d6288070f5902bf0488e1c
X-MES: this is a web3 test message
Host: localhost:8080

--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
Content-Disposition: form-data; name=file; filename=test.txt
Content-Type: text/plain

test content
--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm--

Example Http Response

HTTP/1.1 200 OK
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 50

https://test-bucket.s3.amazonaws.com/nugs/test.txt

Example Curl Request

$ curl 'http://localhost:8080/api/content/nugs/upload' -i -X POST \
    -H 'Content-Type: multipart/form-data' \
    -H 'X-WAL: 0x1371699df678b0d92025bc20fdb91fdef8ce9444' \
    -H 'X-SIG: 0xb21fb02c91dbd6a22714f68fbff5e1c29582891c343950b071ff79ff0a9d2053693d9ef3195c0612ca365bebdcc17ccbaf1e1ddb7b95d6288070f5902bf0488e1c' \
    -H 'X-MES: this is a web3 test message' \
    -F 'file=@test.txt;type=text/plain'

File Upload Controller