Skip to content

plh97/image-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image-server

FREE IMAGE CONTAINER

DEPLOY

git clone https://github.com/plh2/image-server.git
yarn
yarn run start

upload image(Browser|NodeJS)

cosnt axios = require('axios');
let formData = new FormData();
const url = 'http://<yoru domain>:5432/upload'

formData.append("image", blob, "xxx.png");
const res = await axios.post(url, formData, {
  "Content-Type": `multipart/form-data;`,
});
console.log(res.data.data) // image url;

review uploaded images

http://<yoru domain>:5432/public

Demo

index.html

i18n

English 简体中文