Giter Site home page Giter Site logo

Big File Upload about docklet HOT 9 CLOSED

unias avatar unias commented on July 17, 2024
Big File Upload

from docklet.

Comments (9)

nsknojj avatar nsknojj commented on July 17, 2024

!!

from docklet.

nsknojj avatar nsknojj commented on July 17, 2024

zhangwentao

from docklet.

nsknojj avatar nsknojj commented on July 17, 2024

Some notes after reviewing code:
https://github.com/nsknojj/notebook_task/tree/master/notes

from docklet.

caodg avatar caodg commented on July 17, 2024

@nsknojj
I recommend you writing notes using markdown format, which could be automatically rendered as HTML format.

from docklet.

nsknojj avatar nsknojj commented on July 17, 2024

I just figure out what I should do. I need to change the php server "Jquery-file-upload" provided to a new server side with "tornado" framework. Big file upload uses post method with "Content-Type: multipart/form-data". Luckily, it is well-supported by tornado.

from docklet.

leebaok avatar leebaok commented on July 17, 2024

Maybe implementing the backend in tornado is more complex.

You can use one apache/php server for all users. The server puts every file to the correct user's directory. In this way, you just need to pass username to server from browser and then the server gets the username and puts the file in the right path.

But maybe implementing the backend in tornado is not so complex. I noticed there is a GAE python example of backend in source code. And it is not complex. So this method is also ok.

Which way ? Up to you.

Go ahead.

from docklet.

caodg avatar caodg commented on July 17, 2024

I prefer using tornado.
The problem of using Apache server is that we have to set up the server just for file uploading. However, the other functions, like downloading, previewing, are all supported by tornado. That will confuse developers and administrators.
If uploading function is provided by tornado, then we do not have to bother setting up a third apache server.

from docklet.

nsknojj avatar nsknojj commented on July 17, 2024

Today, I have implemented the basic Multi-Blob upload function in tornado server side,
https://github.com/nsknojj/notebook_task/blob/master/handlers.py
In this version, the upload file is saved in current directory, and the response of POST is incorrect.

from docklet.

nsknojj avatar nsknojj commented on July 17, 2024

Almost completed
https://github.com/nsknojj/notebook/tree/big-upload

from docklet.

Related Issues (20)

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.