GithubHelp home page GithubHelp logo

kokoupload's People

Contributors

moata avatar

Watchers

 avatar

kokoupload's Issues

API design for `delete file` feature

Your API design looks like following RESTful API design.
But only this API is not really similar to that.

If you change this delete file API to more like RESTful API, what kind of endpoint will it be?
I feel there might be suitable URL and HTTP method for that.
Could you create a branch like development and push only document change to the branch?(You don't need to update the implementation itself)

something is wrong with file delete feature

[vagrant@localhost ~]$ curl -X POST http://127.0.0.1:5000/files/test.txt -T test.txt
http://127.0.0.1:5000/files/sASofDFARNan5OhhMNBNJw.txt
[vagrant@localhost ~]$ curl http://127.0.0.1:5000/files/sASofDFARNan5OhhMNBNJw.txt
test
[vagrant@localhost ~]$ curl http://127.0.0.1:5000/files/del/sASofDFARNan5OhhMNBNJw.txt
Not able to delete[vagrant@localhost ~]$ 
[vagrant@localhost ~]$ curl http://127.0.0.1:5000/files/sASofDFARNan5OhhMNBNJw.txt
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>404 Not Found</title>
<h1>Not Found</h1>
<p>The requested URL was not found on the server.  If you entered the URL manually please check your spelling and try again.</p>

As above, I got error on file delete, but file seems to be deleted.(got 404).
Could you check what is wrong?

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.