GithubHelp home page GithubHelp logo

picture-bed's Introduction

picture-bed

用于存放图片,俗称“图床”

功能

1、支持['jpg', 'jpeg', 'gif', 'png']四种图片类型上传功能 2、不支持重复上传,不同名 3、支持图片获取

sample

上传图片

curl http://__DOMAIN__/api/upimg -F "file=@__UPFILE_PATH__" -H "token: __TOKEN__" -v
  • DOMAIN 表示域名,如果没有域名,直接填 服务器地址+端口号
  • UPFILE_PATH 表示需要上传的文件路径
  • TOKEN 表示服务器权限,俗称通行令

获取图片

http://__DOMAIN__/api/img?path=__FILE_PATH__
  • DOMAIN上传图片 一致
  • FILE_PATH 表示需要访问的图片路径,该路径是一个相对路径

picture-bed's People

Contributors

lswjkllc avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.