An open API service indexing awesome lists of open source software.

https://github.com/openedoo/module_media

Openedoo module to upload media, like discussion attachments. current status is WIP.
https://github.com/openedoo/module_media

Last synced: 8 months ago
JSON representation

Openedoo module to upload media, like discussion attachments. current status is WIP.

Awesome Lists containing this project

README

          

Openedoo module to upload media, like discussion attachments. curresnt status is WIP.

### Upload file ###
curl example:
```
curl -X POST \
--data-binary '@some_file_with_image.jpg' \
http://127.0.0.1:5000/media/ \
-H 'cache-control: no-cache' \
-H 'content-type: image/jpeg' \
```

Content-type header request must match with the file mime-type, [list of mime-type](https://www.iana.org/assignments/media-types/media-types.xhtml)

### Download file ###
```
[GET] http:///media/static/
```