DEXTUploadJ
DEXTUploadJ References > FileItem > Method > Save
Save Method
- Version
- 1.0.1.0
- Environment
- Sun JDK1.4
- Target
- FileItem
- Signature 1
- public java.lang.String Save(java.lang.String TargetPath, boolean Overwrite)
- Signature 2
- public java.lang.String Save(java.lang.String TargetPath, boolean Overwrite, boolean Copy)
- Parameters
-
Name Signature Description TargetPath java.lang.String Route to save uploaded file Overwrite boolean Process when a same file exits
- true: overwrites file.
- false: does not save.
Copy boolean Copy temporary file without moving. (copy is inefficient but can save at several locations.) - Return value
- Route of saved file (including file name)
- Throws
- DEXTUploadException
- java.io.IOException
- Description
-
Moves uploaded files to assigned route in the same name as the original name.
- Usage (Signature1)
-
item.Save(strSavePath, true);
- Usage (Signature2)
-
item.Save(strSavePath, true, true);