//单个文件上传
public string singleFileUpload(File file){
if(!file.isempty()){
byte []bytes = file.getbytes;
out=new BufferedOutputStream (new FileOutpuStream(new File(filePath+fileName)));
out.write(bytes);
out.flash();
out.close();
}
//多个文件传
public string moreFileUpload(File [] files){
for(File file:files){
byte []bytes = file.getbytes;
out=new BufferedOutputStream (new FileOutpuStream(new File(filePath+fileName)));
out.write(bytes);
out.flash();
out.close();}