📄 smartupload.html
字号:
<BR>
Set the list of allowed files. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/jspsmart/upload/SmartUpload.html#setContentDisposition(java.lang.String)">setContentDisposition</A></B>(java.lang.String contentDisposition)</CODE>
<BR>
Sets the Content Disposition. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/jspsmart/upload/SmartUpload.html#setDeniedFilesList(java.lang.String)">setDeniedFilesList</A></B>(java.lang.String deniedFilesList)</CODE>
<BR>
Set the list of denied files. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/jspsmart/upload/SmartUpload.html#setDenyPhysicalPath(boolean)">setDenyPhysicalPath</A></B>(boolean deny)</CODE>
<BR>
Sets if the component deny physical path. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/jspsmart/upload/SmartUpload.html#setForcePhysicalPath(boolean)">setForcePhysicalPath</A></B>(boolean force)</CODE>
<BR>
Sets if the component force physical path. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/jspsmart/upload/SmartUpload.html#setMaxFileSize(long)">setMaxFileSize</A></B>(long maxFileSize)</CODE>
<BR>
Sets the maximum file size. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/jspsmart/upload/SmartUpload.html#setTotalMaxFileSize(long)">setTotalMaxFileSize</A></B>(long totalMaxFileSize)</CODE>
<BR>
Sets the total maximum file size. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/jspsmart/upload/SmartUpload.html#upload()">upload</A></B>()</CODE>
<BR>
upload Uploads data from the form.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/jspsmart/upload/SmartUpload.html#uploadInFile(java.lang.String)">uploadInFile</A></B>(java.lang.String destFilePathName)</CODE>
<BR>
The uploadInFile method creates a new file with all data of the POST form. </TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="SAVE_AUTO"><!-- --></A><H3>
SAVE_AUTO</H3>
<PRE>
public static final int <B>SAVE_AUTO</B></PRE>
<DL>
</DL>
<HR>
<A NAME="SAVE_VIRTUAL"><!-- --></A><H3>
SAVE_VIRTUAL</H3>
<PRE>
public static final int <B>SAVE_VIRTUAL</B></PRE>
<DL>
</DL>
<HR>
<A NAME="SAVE_PHYSICAL"><!-- --></A><H3>
SAVE_PHYSICAL</H3>
<PRE>
public static final int <B>SAVE_PHYSICAL</B></PRE>
<DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="SmartUpload()"><!-- --></A><H3>
SmartUpload</H3>
<PRE>
public <B>SmartUpload</B>()</PRE>
<DL>
<DD>SmartUpload Creates an new SmartUpload instance.</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="init(javax.servlet.ServletConfig)"><!-- --></A><H3>
init</H3>
<PRE>
public final void <B>init</B>(javax.servlet.ServletConfig config) throws javax.servlet.ServletException</PRE>
<DL>
<DD><B>Deprecated.</B> <I>Since Version 2.1 of jspSmartUpload, use <A HREF="../../../com/jspsmart/upload/SmartUpload.html#initialize(javax.servlet.ServletConfig, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><CODE>initialize(javax.servlet.ServletConfig, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)</CODE></A> instead.</I>
<P>
<DD>init Initialize the object with the context configuration. <p> This method always must be called in first.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>config</CODE> - the config object</DL>
</DD>
</DL>
<HR>
<A NAME="service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>
service</H3>
<PRE>
public void <B>service</B>(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException</PRE>
<DL>
<DD><B>Deprecated.</B> <I>Since Version 2.1 of jspSmartUpload, use <A HREF="../../../com/jspsmart/upload/SmartUpload.html#initialize(javax.servlet.ServletConfig, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><CODE>initialize(javax.servlet.ServletConfig, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)</CODE></A> instead.</I>
<P>
<DD>service Initialize the object with the required Servlet objects. <p> This method always must be called after the init() method.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - the request object.<DD><CODE>response</CODE> - the response object.</DL>
</DD>
</DL>
<HR>
<A NAME="initialize(javax.servlet.ServletConfig, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>
initialize</H3>
<PRE>
public final void <B>initialize</B>(javax.servlet.ServletConfig config, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException</PRE>
<DL>
<DD>Initialize the object with implicits objects. This method always must be called in first. This method is meant to be used when the component is called from a servlet (not a JSP page).<DD><DL>
<DT><B>Parameters:</B><DD><CODE>config</CODE> - The application object.<DD><CODE>request</CODE> - The request object.<DD><CODE>response</CODE> - The response object.<DT><B>Throws:</B><DD>javax.servlet.ServletException - </DL>
</DD>
</DL>
<HR>
<A NAME="initialize(javax.servlet.jsp.PageContext)"><!-- --></A><H3>
initialize</H3>
<PRE>
public final void <B>initialize</B>(javax.servlet.jsp.PageContext pageContext) throws javax.servlet.ServletException</PRE>
<DL>
<DD>Initialize the object with implicits objects. This method always must be called in first.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pageContext</CODE> - The pageContext object.<DT><B>Throws:</B><DD>javax.servlet.ServletException - </DL>
</DD>
</DL>
<HR>
<A NAME="initialize(javax.servlet.ServletContext, javax.servlet.http.HttpSession, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, javax.servlet.jsp.JspWriter)"><!-- --></A><H3>
initialize</H3>
<PRE>
public final void <B>initialize</B>(javax.servlet.ServletContext application, javax.servlet.http.HttpSession session, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.jsp.JspWriter out) throws javax.servlet.ServletException</PRE>
<DL>
<DD><B>Deprecated.</B> <I><A HREF="../../../com/jspsmart/upload/SmartUpload.html#initialize(javax.servlet.ServletConfig, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><CODE>initialize(javax.servlet.ServletConfig, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)</CODE></A> instead.</I>
<P>
<DD>Initialize the object with implicits objects. This method always must be called in first.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>application</CODE> - The application object.<DD><CODE>session</CODE> - The session object.<DD><CODE>request</CODE> - The request object.<DD><CODE>response</CODE> - The response object.<DD><CODE>out</CODE> - The out object.<DT><B>Throws:</B><DD>javax.servlet.ServletException - </DL>
</DD>
</DL>
<HR>
<A NAME="upload()"><!-- --></A><H3>
upload</H3>
<PRE>
public void <B>upload</B>() throws javax.servlet.ServletException, java.io.IOException, <A HREF="../../../com/jspsmart/upload/SmartUploadException.html">SmartUploadException</A></PRE>
<DL>
<DD>upload Uploads data from the form.</DL>
<HR>
<A NAME="save(java.lang.String)"><!-- --></A><H3>
save</H3>
<PRE>
public int <B>save</B>(java.lang.String destPathName) throws javax.servlet.ServletException, java.io.IOException, <A HREF="../../../com/jspsmart/upload/SmartUploadException.html">SmartUploadException</A></PRE>
<DL>
<DD>Saves all the uploaded files in the specified destination.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>destPathName</CODE> - The destination path.</DL>
</DD>
</DL>
<HR>
<A NAME="save(java.lang.String, int)"><!-- --></A><H3>
save</H3>
<PRE>
public int <B>save</B>(java.lang.String destPathName, int option) throws javax.servlet.ServletException, java.io.IOException, <A HREF="../../../com/jspsmart/upload/SmartUploadException.html">SmartUploadException</A></PRE>
<DL>
<DD>Saves all the uploaded files in the specified destination.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>destPathName</CODE> - The destination path.</DL>
</DD>
</DL>
<HR>
<A NAME="getSize()"><!-- --></A><H3>
getSize</H3>
<PRE>
public int <B>getSize</B>()</PRE>
<DL>
<DD>getSize Returns the total size of data uploaded.</DL>
<HR>
<A NAME="getBinaryData(int)"><!-- --></A><H3>
getBinaryData</H3>
<PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -