https://github.com/bishwenduk029/crytallize-image-upload
Image Upload/Download REST API
https://github.com/bishwenduk029/crytallize-image-upload
Last synced: 7 months ago
JSON representation
Image Upload/Download REST API
- Host: GitHub
- URL: https://github.com/bishwenduk029/crytallize-image-upload
- Owner: bishwenduk029
- Created: 2020-07-07T20:56:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-01T23:44:35.000Z (over 3 years ago)
- Last Synced: 2025-01-27T06:37:27.200Z (9 months ago)
- Language: JavaScript
- Size: 56.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Description
A simple node.js server to upload an image and return a URL to the consumer of API. When the user clicks on the returned URL the image is displayed in the browser.
# Following are the steps to run the same
- git clone https://github.com/bishwenduk029/crytallize-image-upload.git
- cd crytallize-image-upload
- npm install
- npm run dev# Testing from POSTMAN
- Upload Example
- POST http://127.0.0.1:8000/uploads
- Select form-data
- enter image as key
- for value select any image from your local computer
- Now hit SEND button
- Response:
- {"url":"http://127.0.0.1:8000/uploads/((name_of_image_file))"}
- Now simply click or past the URL in the browser to access the file.