DEXTUploadJ
DEXTUploadJ References > FileUpload > Method > getFileItemValues

getFileItemValues Method

Version
1.0.1.0
Environment
Sun JDK1.4
Target
Upload
Signature
public FileItem[] getFileItemValues(java.lang.String _Name)
Parameters
Name Signature Description
_Namejava.lang.StringForm name
Return value
All form data corresponding with _Name
Throws
Description

Obtains all file items corresponding with _Name transmitted by user in arranged type.

Usage
FileUpload fileUpload = new FileUpload(request, response);

...omitted...

FileItem[] value = fileUpload.getFileItemValues("upfile");

for (int i = 0; i < value.length; i++) 
{
	if(value[i] != null)
	{
		if(value[i].IsUploaded())
		{
			value[i].Save(strPath, true);
		}
	}
}