contented/_dist/README.txt

56 lines
1.7 KiB
Plaintext
Raw Normal View History

2017-10-08 02:32:38 +00:00
A file / image / paste upload server with a focus on embedding.
2017-10-06 07:22:55 +00:00
Written in Go
2017-10-08 02:32:38 +00:00
You can use contented as a standalone upload server, or you can use the SDK to embed its upload widget into another website.
2017-10-06 07:22:55 +00:00
=FEATURES=
2017-10-08 02:32:38 +00:00
- Drag and drop uploader, or fallback classic uploader
- Multiple files upload
- Pastebin upload
- SDK-oriented design for embedding
2017-10-08 02:35:13 +00:00
- Mobile friendly HTML interface
2017-10-08 02:32:38 +00:00
- Preserves uploaded filename and content-type metadata
- Hash verification (SHA512/256)
2017-10-08 02:35:13 +00:00
- Detect duplicate upload content and reuse storage
2017-10-08 02:32:38 +00:00
- Options to limit the upload filesize and the upload bandwidth
=USAGE (SERVER)=
`Usage of contented:
-data string
Directory for stored content (default "")
-db string
Path for metadata database (default "contented.db")
-listen string
(default "127.0.0.1:80")
-max int
Maximum size of uploaded files in MiB (set zero for unlimited) (default 8)
-speed int
Maximum upload speed in bytes/sec (set zero for unlimited)
-title string
Title used in web interface (default "contented")
`
=USAGE (EMBEDDING FOR WEB)=
Your webpage should load the SDK from the contented server, then call the `contented.init` function to display the upload widget over the top of an existing DOM element.
The SDK will run your callback, passing it the file IDs of any uploaded items.
The SDK depends on jQuery.
`
<script type="text/javascript" src="SERVER_ADDR/sdk.js"></script>
contented.init("#target", function(/* String[] */ items) {});
`
2017-10-06 07:26:31 +00:00
=TODO=
- View upload history / view all uploads
- Encrypted at rest (anti- provider snooping)
- Shorter URLs
- Deploy!
- Display 'my uploads' (id + metadata history kept in localstorage)