Skip to content

Repository files navigation

upload-download-java

size GitHub Workflow Status license

🌍 English简体中文

A file upload and download module for Java.

It is out of business and returns a collection of file paths that you can decide how to use and where to use。

Environments

  • JDK 8

  • Gradle 7.0.2

  • Spring Boot 2.5.5

Usage

  • Upload

POST /appendix/test
Content-Type: multipart/form-data; boundary=WebAppBoundary

--WebAppBoundary
# File upload
Content-Disposition: form-data; name="file"; filename="demo.tar.gz"
Content-Type: application/x-gzip

# Here you specify file to upload
< ../../tar/demo.tar.gz
--WebAppBoundary--

# return a collection of file paths
["\\appendix\\test\\daad5d07-2be6-44fa-978c-1581931a63a2\\demo.tar.gz"] (Windows)
["/appendix/test/daad5d07-2be6-44fa-978c-1581931a63a2/demo.tar.gz"] (Linux/MAC OS)
  • Download

GET /appendix/test/daad5d07-2be6-44fa-978c-1581931a63a2/demo.tar.gz

Related Efforts

Maintainers

@myifeng.

Contributing

Feel free to dive in! Open an issue or submit PRs.

Standard Readme follows the Contributor Covenant Code of Conduct.

Contributors

All contributions are greatly appreciated.

All contributions

License

MIT © myifeng

About

A file upload and download module for Java.(文件上传与下载Java版)

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages