分类:
2008-09-12 09:14:18
void write(.io.File file)
A convenience method to write an uploaded item to disk.
而这里的是String!!!
Constructor Summary
File(File parent, String child)
Creates a new File instance from a parent abstract pathname and a child pathname string.
File(String pathname)
Creates a new File instance by converting the given pathname string into an abstract pathname.
File(String parent, String child)
Creates a new File instance from a parent pathname string and a child pathname string.
File(URI uri)
Creates a new File instance by converting the given file: URI into an abstract pathname.
我修改了这句为两句:
File writeFile=new File("F:\\public",name);
fi.write(writeFile);
这样这个上传程序终于可以工作了!(一会有源代码,上传一个文件的)
还有这里的"" 都是""(输入法问题),如果粘贴过来要一个个修改,不知道怎么回事情,网上的代码总是有一点让人难以琢磨的错误而不能运行!所以网上的东西只能参考理解之后再自己写!
其它过程:
1.upload
B 端的上传
1)
upload目录: