Giter VIP home page Giter VIP logo

spring-upload's Introduction

스프링에서는 MultipartFile을 이용하여 손쉽게 파일 업로드가 가능하다.
실무에서는 오리지널 파일 이름과 고유한 저장 이름을 구분하여 저장해야 한다. => 중복방지

DB에는 파일의 경로만 저장하고, 실제 바이너리 파일은 스토리지(S3 등)에 저장한다.

파일을 다운로드 할 땐, Http Header에 Content Disposition, attachment; filename 포맷이 규약
핸들러에서 Response에 Resource 객체 활용한다.

UriUtils.encode 유틸로 편리하게 인코딩 가능

spring-upload's People

Contributors

frankle97 avatar jaeyeobjung avatar

Watchers

 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.