Giter Site home page Giter Site logo

largeuploads's Introduction

largeuploads

Spring Boot very large uploads

To run

docker-compose up The initial build takes some minutes depending on the Internet connection. Wait until the terminal stops scrolling.

To test

Open a web-browser on http://127.0.0.1

There’s a simple form to upload a file. Any uploaded files will be listed on the web-page, underneath the form. The files are saved on the folder upload_folder in the root directory. This folder is mapped into the spring_run container as a volume on docker-compose. For the purpose of testing a large file upload, my suggestion is to replace the actual upload_folder using a separate partition or external drive as the upload_folder by the means of a symbolic link. As such: ln -s /dev/sdb/some_folder ./upload_folder Then, on the terminal, you can run a watch df -h during the large file upload and watch the used disk space staled while the destination partition will increase.

Another way to upload files is using a cURL command on the endpoint http://127.0.0.1/upload, as such: curl -X POST -F file=@/home/dgomes/Downloads/WHDLOAD.7z http://127.0.0.1/upload

largeuploads's People

Contributors

diogogomes77 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.