Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
上载具有此对象的指定属性的文件。
abstract boolean FileTransfer.uploadFile() throws ULjException
如果上载成功,则返回 true;否则,将抛出 ULjException,并且该方法将无法正常返回值。
由 setLocalFileName 和 setLocalPath 方法指定的文件将上载到 MobiLink 服务器中由 setServerFileName 方法使用指定的流、用户名、口令和脚本版本所指定的文件。
使用 setAuthenticationParms() 和 setResumePartialTransfer() 方法可以指定更多选项。
使用 getAuthStatus()、getAuthValue()、getFileAuthCode()、isTransferredFile()、getStreamErrorCode() 和 getStreamErrorMessage() 方法可以读取详细的结果状态。