Java universal file upload v1.2 updated, adding support for Qiniu Cloud, SFTP and other storage methods

Software Description

Two lines of Java code implement file upload. From now on, regardless of local storage, distributed storage, object storage... it is exactly the same code call! It gives you the ability to switch between various storages and use them at will without touching the project code.

Release Notes

  1. Added support for using Qiniu Cloud cloud storage
  2. Added support for using SFTP for storage
  3. When adding ordinary local storage and switching to Alibaba Cloud OSS storage, projects that have been deployed online will automatically load the shell of the relevant Alibaba Cloud jar package .
  4. Add related interfaces that ignore upload restrictions to avoid the problem of being unable to overcome upload restrictions if there are special circumstances in the system.
  5. Optimize the logic of using loadConfig () for scanning configuration loading in SpringBoot and ordinary java projects
  6. Fix the acquisition of Alibaba Cloud OSS data to avoid exceptions when the file does not exist
  7. Optimize the problem that Javadoc in some IDEs causes packaging failure
  8. LocalStorage instructions and usage guidelines for optimizing local storage mode
  9. Optimize UploadFileVO ’s toString output

 

Quick to use

1. Add to pom.xml:

<!-- Core support for file upload https://gitee.com/mail_osc/FileUpload --> 
< dependency >  
< groupId > cn.zvo.fileupload </ groupId > < artifactId > fileupload-core </ artifactId > < version >1.2 </ version > </ dependency >	
	
	

2. Call in code

FileUpload fileUpload = new FileUpload();	 //Create
 UploadFileVO vo = fileUpload.uploadString( "abc/1.txt" , "123456" ); //Upload a text file here. The content of the text file is 123456. Save it to 1.txt file in the abc directory
 System.out. println (vo); //Output to the console and see the result

Guess you like

Origin www.oschina.net/news/257406/leiming-fileupload-1-2
Recommended