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.
- Host: GitHub
- URL: https://github.com/openedoo/module_media
- Owner: openedoo
- Created: 2017-07-07T09:24:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-10T08:43:10.000Z (over 8 years ago)
- Last Synced: 2024-01-09T10:47:57.899Z (about 2 years ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/
```