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 方法指定的文件使用指定流、用户名、口令和脚本版本被上载到 setServerFileName 方法所指定的文件中的 MobiLink 服务器。
使用 setAuthenticationParms() 和 setResumePartialTransfer() 方法可以指定更多选项。
详细的结果状态可以使用 getAuthStatus()、getAuthValue()、getFileAuthCode()、isTransferredFile()、getStreamErrorCode() 和 getStreamErrorMessage() 方法进行读取。