Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shahriyardx/express-cloudinary
simple repo with a express app that can be used to upload and delete filed on cloudinary
https://github.com/shahriyardx/express-cloudinary
Last synced: 9 days ago
JSON representation
simple repo with a express app that can be used to upload and delete filed on cloudinary
- Host: GitHub
- URL: https://github.com/shahriyardx/express-cloudinary
- Owner: shahriyardx
- Created: 2024-06-13T21:03:06.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-13T21:25:06.000Z (5 months ago)
- Last Synced: 2024-06-13T23:48:50.538Z (5 months ago)
- Language: TypeScript
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# express-cloudinary
simple repo with a express app that can be used to upload and delete filed on cloudinary## Example upload
```js
const data = new FormData()
data.append('file', file)fetch('http://localhost:5001/upload', {
method: "POST",
headers: {
'content-type': 'multipart/form-data',
},
body: data,
})// { success: true, url: , public_id: }
```## Example delete
```js
fetch('http://localhost:5001/delete', {
method: "DELETE",
headers: {
'content-type': 'application/json',
},
body: JSON.stringify({ public_id: 'file_public_id' })
})
```