本文主要是介绍Smartupload上传组件,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Smartupload上传组件
图片等文件上传不同于单纯的数字,文件在计算机中以二进制的形式存在,文件的上传要用到Smartupload组件。我们一起学习一下如何利用Smartupload组件上传文件。
实例来讲解Smartupload组件上传文件的应用
<form action="smart1/smartAction.jsp" method="post" enctype="multipart/form-data">
上传:<input type="file" name="pic"><br/>
<input type="submit" value="上传">
</form>
--------------------------------
SmartUpload smart=new SmartUpload();
smart.initialize(pageContext);
smart.upload();
smart.setCharset("gbk");
smart.save("upload");
这篇关于Smartupload上传组件的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!