QtsHttp  0.9.1
Public Member Functions | List of all members
QtsHttp.FileStaion.IQtsHttpFileStation Interface Reference

Interface for Qts Http file station API. More...

Public Member Functions

Task< string > CreateChunkedUploadID (string strUploadTempPath, CancellationTokenSource reqCancellation)
 Create chunked upload ID. Please using try catch mechanism to call this function. More...
 
Task ChunkedUploadFileByPath (string strUploadFilePath, string strToFilePath, string strRenameOriDestFileName, string strUploadID, string strUploadTempPath, string strMT, Stream streamUpload, object lpData, SyncProgressBtyesCallback pfHttpFSCallback, CancellationTokenSource reqCancellation)
 Chunked upload a file to QNAP Turbo NAS. Please using try catch mechanism to call this function. More...
 
Task DeleteChunkedUploadFile (string strUploadID, string strUploadTempPath, CancellationTokenSource reqCancellation)
 Delete chunked upload file by upload ID. Please using try catch mechanism to call this function. More...
 
Task< List< FileEntry > > GetShareFolderList (CancellationTokenSource reqCancellation)
 Get share folder list of QNAP Turbo NAS. Please using try catch mechanism to call this function. More...
 
Task< int > GetFileListCount (string strPath, CancellationTokenSource reqCancellation)
 Get file list count below specify path. Please using try catch mechanism to call this function. More...
 
Task< List< FileEntry > > GetFileList (string strPath, int nStartIdx, int nFileLimit, CancellationTokenSource reqCancellation)
 Get file list below specify path. Please using try catch mechanism to call this function. More...
 
Task< ShareLinkCreateShareLink (ShareLinkInfo ShareLinkInfo, CancellationTokenSource reqCancellation)
 Create share link. Please using try catch mechanism to call this function. More...
 
Task< List< ShareLink > > GetShareLinkList (int nFileLimit, CancellationTokenSource reqCancellation)
 Get share link list. Please using try catch mechanism to call this function. More...
 
Task DeleteShareLink (ShareLink ShareLink, CancellationTokenSource reqCancellation)
 Delete share link. Please using try catch mechanism to call this function. More...
 
Task CreateFolder (FileEntry parentFolderEntry, string strCreateFolderName, CancellationTokenSource reqCancellation)
 Create a folder. Please using try catch mechanism to call this function. More...
 
Task CopyFile (FileEntry fromEntry, string strToPath, int nMode, object lpData, SyncProgressCallback pfHttpFSCallback, CancellationTokenSource reqCancellation)
 Copy a file/folder from source to destination. Please using try catch mechanism to call this function. More...
 
Task MoveFile (FileEntry fromEntry, string strToPath, int nMode, object lpData, SyncProgressCallback pfHttpFSCallback, CancellationTokenSource reqCancellation)
 Move a file/folder from source to destination. Please using try catch mechanism to call this function. More...
 
Task DeleteFile (FileEntry deleteFileEntry, CancellationTokenSource reqCancellation)
 Delete a file/folder in QNAP Turbo NAS. Please using try catch mechanism to call this function. More...
 
Task CreateFolderByPath (string strCreateFolderPath, string strCreateFolderName, CancellationTokenSource reqCancellation)
 Create a folder by path. Please using try catch mechanism to call this function. More...
 
Task CopyFileByPath (string strFromPath, string strToPath, int nMode, object lpData, SyncProgressCallback pfHttpFSCallback, CancellationTokenSource reqCancellation)
 Copy a file/folder by path from source to destination. Please using try catch mechanism to call this function. More...
 
Task MoveFileByPath (string strFromPath, string strToPath, int nMode, object lpData, SyncProgressCallback pfHttpFSCallback, CancellationTokenSource reqCancellation)
 Move a file/folder by path from source to destination. Please using try catch mechanism to call this function. More...
 
Task DeleteFileByPath (string strDeletePath, CancellationTokenSource reqCancellation)
 Delete a file/folder by path in QNAP Turbo NAS. Please using try catch mechanism to call this function. More...
 
Task< List< FileEntry > > SearchFile (string strPath, string strQuery, int nFileLimit, CancellationTokenSource reqCancellation)
 File search. Please using try catch mechanism to call this function. More...
 
Task< FileStatusGetFileStatus (string strPath, CancellationTokenSource reqCancellation)
 Get file status. Please using try catch mechanism to call this function. More...
 
Task RenameFile (string strRenamePath, string strNewName, CancellationTokenSource reqCancellation)
 Rename a file/folder in QNAP Turbo NAS. Please using try catch mechanism to call this function. More...
 
Task< FileStatusUpdateFileModifyDate (string strUpdateFilePath, long modifyTime, CancellationTokenSource reqCancellation)
 Set folder/file modification time. Please using try catch mechanism to call this function. More...
 
Task CompressFiles (string strCompressName, string compressFilePath, int totalFileNum, List< FileEntry > fileList, CompressFormatType compressFormat, string strPWD, CompressLevel compressLevel, CompressEncryptType encryptType, CompressUpdateMode updateMode, object lpData, SyncProgressCallback pfHttpFSCallback, CancellationTokenSource reqCancellation)
 Compress files. Please using try catch mechanism to call this function. More...
 
Task< List< ExtractEntry > > ListContentsOfExtractedFile (string strExtractedFileFullName, int nStartIdx, int nFileLimit, CancellationTokenSource reqCancellation)
 List the contents of an extracted file. Please using try catch mechanism to call this function. More...
 
Task ExtractFiles (string strExtractedFileFullName, string strToPath, string strPWD, ExtractMode extractMode, int partTotalFileSize, List< string > partExtractfileList, OverWrite overWrite, ExtractPathMode extractPathMode, object lpData, SyncProgressCallback pfHttpFSCallback, CancellationTokenSource reqCancellation)
 Extract files. Please using try catch mechanism to call this function. More...
 
Task< NASInfoGetDomainIPList (CancellationTokenSource reqCancellation)
 Get hostname and external IP address of the QNAP Turbo NAS. Please using try catch mechanism to call this function. More...
 
Task AddVideoTranscode (string strVideoFileFullPath, CancellationTokenSource reqCancellation)
 Add video to transcode queue. Please using try catch mechanism to call this function. More...
 
Task DeleteVideoTranscode (string strVideoFileFullPath, CancellationTokenSource reqCancellation)
 Delete video transcode file. Please using try catch mechanism to call this function. More...
 
Task< Stream > DownloadFile (FileEntry downloadFileEntry, string strToFilePath, long lOffset, object lpData, SyncProgressCallback pfHttpFSCallback, CancellationTokenSource reqCancellation)
 Download a file to local. Please using try catch mechanism to call this function. Limitation : Download file name only support English format on Windows Phone. More...
 
Task< Stream > DownloadFileByPath (string strDownloadFileFullPath, string strToFilePath, long lOffset, object lpData, SyncProgressCallback pfHttpFSCallback, CancellationTokenSource reqCancellation)
 Download a file to local. Please using try catch mechanism to call this function. Limitation : Download file name only support English format on Windows Phone. More...
 
Task UploadFileByPath (string strUploadFilePath, string strToFilePath, object lpData, Stream streamUpload, SyncProgressBtyesCallback pfHttpFSCallback, CancellationTokenSource reqCancellation)
 Upload a file to QNAP Turbo NAS. Please using try catch mechanism to call this function. Limitation : Cannot upload file size exceed 30MB. More...
 
bool DestroyRequest (IRequestBase request)
 Destroy file station request after file station API complete. More...
 
string GetFileURL (string strFileFullPath)
 Get file URL. More...
 
string GetImgThumbURL (string strFileFullPath)
 Get image thumbnail of file. More...
 
Task< IRequestBaseGetShareFolderListAsync (object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Get share folder list of QNAP Turbo NAS. More...
 
Task< IRequestBaseGetFileListCountAsync (string strPath, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Get file list count below specify path. More...
 
Task< IRequestBaseGetFileListAsync (string strPath, int nStartIdx, int nFileLimit, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Get file list below specify path. More...
 
Task< IRequestBaseCreateChunkedUploadIDAsync (string strUploadTempPath, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Create chunked upload ID. More...
 
Task< IRequestBaseChunkedUploadFileByPathAsync (string strUploadFilePath, string strToFilePath, string strRenameOriDestFileName, string strUploadID, string strUploadTempPath, string strMT, Stream streamUpload, object lpData, AsyncResponseCallback pfHttpFSCallback)
 Chunked upload a file to QNAP Turbo NAS. More...
 
Task< IRequestBaseDeleteChunkedUploadFileAsync (string strUploadID, string strUploadTempPath, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Delete chunked upload file by upload ID. More...
 
Task< IRequestBaseCreateShareLinkAsync (ShareLinkInfo ShareLinkInfo, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Create share link. More...
 
Task< IRequestBaseGetShareLinkListAsync (int nFileLimit, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Get share link list. More...
 
Task< IRequestBaseDeleteShareLinkAsync (ShareLink ShareLink, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Delete share link. More...
 
Task< IRequestBaseCreateFolderAsync (FileEntry parentFolderEntry, string strCreateFolderName, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Create a folder. More...
 
Task< IRequestBaseCopyFileAsync (FileEntry fromEntry, string strToPath, int nMode, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Copy a file/folder from source to destination. More...
 
Task< IRequestBaseMoveFileAsync (FileEntry fromEntry, string strToPath, int nMode, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Move a file/folder from source to destination. More...
 
Task< IRequestBaseDeleteFileAsync (FileEntry deleteFileEntry, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Delete a file/folder in QNAP Turbo NAS. More...
 
Task< IRequestBaseCreateFolderByPathAsync (string strCreateFolderPath, string strCreateFolderName, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Create a folder by path. More...
 
Task< IRequestBaseCopyFileByPathAsync (string strFromPath, string strToPath, int nMode, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Copy a file/folder by path from source to destination. More...
 
Task< IRequestBaseMoveFileByPathAsync (string strFromPath, string strToPath, int nMode, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Move a file/folder by path from source to destination. More...
 
Task< IRequestBaseDeleteFileByPathAsync (string strDeletePath, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Delete a file/folder by path in QNAP Turbo NAS. More...
 
Task< IRequestBaseSearchFileAsync (string strPath, string strQuery, int nFileLimit, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] File search. More...
 
Task< IRequestBaseGetFileStatusAsync (string strPath, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Get file status. More...
 
Task< IRequestBaseRenameFileAsync (string strRenamePath, string strNewName, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Rename a file/folder in QNAP Turbo NAS. More...
 
Task< IRequestBaseUpdateFileModifyDateAsync (string strUpdateFilePath, long modifyTime, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Set folder/file modification time. More...
 
Task< IRequestBaseCompressFilesAsync (string strCompressName, string compressFilePath, int totalFileNum, List< FileEntry > fileList, CompressFormatType compressFormat, string strPWD, CompressLevel compressLevel, CompressEncryptType encryptType, CompressUpdateMode updateMode, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Compress files. More...
 
Task< IRequestBaseListContentsOfExtractedFileAsync (string strExtractedFileFullName, int nStartIdx, int nFileLimit, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] List the contents of an extracted file. More...
 
Task< IRequestBaseExtractFilesAsync (string strExtractedFileFullName, string strToPath, string strPWD, ExtractMode extractMode, int partTotalFileSize, List< string > partExtractfileList, OverWrite overWrite, ExtractPathMode extractPathMode, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Extract files. More...
 
Task< IRequestBaseGetDomainIPListAsync (object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Get hostname and external IP address of the QNAP Turbo NAS. More...
 
Task< IRequestBaseAddVideoTranscodeAsync (string strVideoFileFullPath, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Add video to transcode queue. More...
 
Task< IRequestBaseDeleteVideoTranscodeAsync (string strVideoFileFullPath, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Delete video transcode file. More...
 
Task< IRequestBaseDownloadFileAsync (FileEntry downloadFileEntry, string strToFilePath, long lOffset, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Download a file to local. Limitation : Download file name only support English format on Windows Phone. More...
 
Task< IRequestBaseDownloadFileByPathAsync (string strDownloadFileFullPath, string strToFilePath, long lOffset, object lpData, AsyncResponseCallback pfHttpFSCallback)
 Download a file to local. Limitation : Download file name only support English format on Windows Phone. More...
 
Task< IRequestBaseUploadFileByPathAsync (string strUploadFilePath, string strToFilePath, Stream streamUpload, object lpData, AsyncResponseCallback pfHttpFSCallback)
 [Async] Upload a file by path to QNAP Turbo NAS. Limitation : Cannot upload file size exceed 30MB. More...
 

Detailed Description

Interface for Qts Http file station API.

  1. Support file station related API.
  2. Support sync and async API.

Member Function Documentation

Task QtsHttp.FileStaion.IQtsHttpFileStation.AddVideoTranscode ( string  strVideoFileFullPath,
CancellationTokenSource  reqCancellation 
)

Add video to transcode queue. Please using try catch mechanism to call this function.

Parameters
[IN]strVideoFileFullPath : Add video file full path in QNAP Turbo NAS.
[IN]reqCancellation : Cancel API.
Returns
N/A
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.AddVideoTranscodeAsync ( string  strVideoFileFullPath,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Add video to transcode queue.

Parameters
[IN]strVideoFileFullPath : Add video file full path in QNAP Turbo NAS.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task QtsHttp.FileStaion.IQtsHttpFileStation.ChunkedUploadFileByPath ( string  strUploadFilePath,
string  strToFilePath,
string  strRenameOriDestFileName,
string  strUploadID,
string  strUploadTempPath,
string  strMT,
Stream  streamUpload,
object  lpData,
SyncProgressBtyesCallback  pfHttpFSCallback,
CancellationTokenSource  reqCancellation 
)

Chunked upload a file to QNAP Turbo NAS. Please using try catch mechanism to call this function.

Parameters
[IN]strUploadFileFullPath : Local path of chunked upload file.
[IN]strToFilePath : Destination path in QNAP Turbo NAS.
[IN]strRenameOriDestFileName : Rename original destination file to strRenameOriDestFileName, if file already exist.
[IN]strUploadID : Chunked upload ID. Get from CreateChunkedUploadID.
[IN]strUploadTempPath : Where to put temp file in QTS Turbo NAS. The same as CreateChunkedUploadID.
[IN]reqCancellation : Cancel API.
[IN]streamUpload : Upload file stream.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : Callback function for notify API TotalBytesTransferred status.
Returns
APIResult : API success or fail error code.
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.ChunkedUploadFileByPathAsync ( string  strUploadFilePath,
string  strToFilePath,
string  strRenameOriDestFileName,
string  strUploadID,
string  strUploadTempPath,
string  strMT,
Stream  streamUpload,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

Chunked upload a file to QNAP Turbo NAS.

Parameters
[IN]strUploadFileFullPath : Local path of chunked upload file.
[IN]strToFilePath : Destination path in QNAP Turbo NAS.
[IN]strRenameOriDestFileName : Rename original destination file to strRenameOriDestFileName, if file already exist.
[IN]strUploadID : Chunked upload ID. Get from CreateChunkedUploadID.
[IN]strUploadTempPath : Where to put temp file in QTS Turbo NAS. The same as CreateChunkedUploadID.
[IN]reqCancellation : Cancel API.
[IN]streamUpload : Upload file stream.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task QtsHttp.FileStaion.IQtsHttpFileStation.CompressFiles ( string  strCompressName,
string  compressFilePath,
int  totalFileNum,
List< FileEntry fileList,
CompressFormatType  compressFormat,
string  strPWD,
CompressLevel  compressLevel,
CompressEncryptType  encryptType,
CompressUpdateMode  updateMode,
object  lpData,
SyncProgressCallback  pfHttpFSCallback,
CancellationTokenSource  reqCancellation 
)

Compress files. Please using try catch mechanism to call this function.

Parameters
[IN]strCompressName :Compressed name.
[IN]compressFilePath : Compressd file path.
[IN]totalFileNum : The amount of compression files number.
[IN]compressFileNameList : The compressed file name list.
[IN]compressFormat : Compressed format.
[IN]strPWD : Compressed password (can be null).
[IN]compressLevel : Compressed level.
[IN]encryptType : Compressed encrypt type.
[IN]updateMode : Compressed update mode.
[IN]reqCancellation : Cancel API.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : Callback function for notify API progress rate.
Returns
N/A
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.CompressFilesAsync ( string  strCompressName,
string  compressFilePath,
int  totalFileNum,
List< FileEntry fileList,
CompressFormatType  compressFormat,
string  strPWD,
CompressLevel  compressLevel,
CompressEncryptType  encryptType,
CompressUpdateMode  updateMode,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Compress files.

Parameters
[IN]strCompressName :Compressed name.
[IN]compressFilePath : Compressd file path.
[IN]totalFileNum : The amount of compression files number.
[IN]compressFileNameList : The compressed file name list.
[IN]compressFormat : Compressed format.
[IN]strPWD : Compressed password (can be null).
[IN]compressLevel : Compressed level.
[IN]encryptType : Compressed encrypt type.
[IN]updateMode : Compressed update mode.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task QtsHttp.FileStaion.IQtsHttpFileStation.CopyFile ( FileEntry  fromEntry,
string  strToPath,
int  nMode,
object  lpData,
SyncProgressCallback  pfHttpFSCallback,
CancellationTokenSource  reqCancellation 
)

Copy a file/folder from source to destination. Please using try catch mechanism to call this function.

Parameters
[IN]fromEntry : Source entry in QNAP Turbo NAS.
[IN]strToPath : Destination path in QNAP Turbo NAS.
[IN]nMode : Skip / Overwrite.
[IN]reqCancellation : Cancel API.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : Callback function for notify API progress rate.
Returns
N/A
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.CopyFileAsync ( FileEntry  fromEntry,
string  strToPath,
int  nMode,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Copy a file/folder from source to destination.

Parameters
[IN]fromEntry : Source entry in QNAP Turbo NAS.
[IN]strToPath : Destination path in QNAP Turbo NAS.
[IN]nMode : Skip / Overwrite.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task QtsHttp.FileStaion.IQtsHttpFileStation.CopyFileByPath ( string  strFromPath,
string  strToPath,
int  nMode,
object  lpData,
SyncProgressCallback  pfHttpFSCallback,
CancellationTokenSource  reqCancellation 
)

Copy a file/folder by path from source to destination. Please using try catch mechanism to call this function.

Parameters
[IN]strFromPath : Source full path in QNAP Turbo NAS.
[IN]strToPath : Destination path in QNAP Turbo NAS.
[IN]nMode : Skip / Overwrite.
[IN]reqCancellation : Cancel API.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : Callback function for notify API progress rate.
Returns
N/A
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.CopyFileByPathAsync ( string  strFromPath,
string  strToPath,
int  nMode,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Copy a file/folder by path from source to destination.

Parameters
[IN]strFromPath : Source full path in QNAP Turbo NAS.
[IN]strToPath : Destination path in QNAP Turbo NAS.
[IN]nMode : Skip / Overwrite.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task<string> QtsHttp.FileStaion.IQtsHttpFileStation.CreateChunkedUploadID ( string  strUploadTempPath,
CancellationTokenSource  reqCancellation 
)

Create chunked upload ID. Please using try catch mechanism to call this function.

Parameters
[IN]strUploadTempPath : Where to put temp file in QTS Turbo NAS.
[IN]reqCancellation : Cancel API.
Returns
string : chunked upload ID.
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.CreateChunkedUploadIDAsync ( string  strUploadTempPath,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Create chunked upload ID.

Parameters
[IN]strUploadTempPath : Where to put temp file in QTS Turbo NAS.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task QtsHttp.FileStaion.IQtsHttpFileStation.CreateFolder ( FileEntry  parentFolderEntry,
string  strCreateFolderName,
CancellationTokenSource  reqCancellation 
)

Create a folder. Please using try catch mechanism to call this function.

Parameters
[IN]parentFolderEntry : Create a folder below parentFolderEntry.
[IN]strCreateFolderName : Create folder name.
[IN]reqCancellation : Cancel API.
Returns
N/A
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.CreateFolderAsync ( FileEntry  parentFolderEntry,
string  strCreateFolderName,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Create a folder.

Parameters
[IN]parentFolderEntry : Create a folder below parentFolderEntry.
[IN]strCreateFolderName : Create folder name.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task QtsHttp.FileStaion.IQtsHttpFileStation.CreateFolderByPath ( string  strCreateFolderPath,
string  strCreateFolderName,
CancellationTokenSource  reqCancellation 
)

Create a folder by path. Please using try catch mechanism to call this function.

Parameters
[IN]strCreateFolderPath : Create a folder at this path.
[IN]strCreateFolderName : Create folder name.
[IN]reqCancellation : Cancel API.
Returns
N/A
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.CreateFolderByPathAsync ( string  strCreateFolderPath,
string  strCreateFolderName,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Create a folder by path.

Parameters
[IN]strCreateFolderPath : Create a folder at this path.
[IN]strCreateFolderName : Create folder name.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task<ShareLink> QtsHttp.FileStaion.IQtsHttpFileStation.CreateShareLink ( ShareLinkInfo  ShareLinkInfo,
CancellationTokenSource  reqCancellation 
)

Create share link. Please using try catch mechanism to call this function.

Parameters
[IN]ShareLinkInfo : Setting of create share link.
[IN]reqCancellation : Cancel API.
Returns
ShareLink : Share link information.
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.CreateShareLinkAsync ( ShareLinkInfo  ShareLinkInfo,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Create share link.

Parameters
[IN]ShareLinkInfo : Setting of create share link.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task QtsHttp.FileStaion.IQtsHttpFileStation.DeleteChunkedUploadFile ( string  strUploadID,
string  strUploadTempPath,
CancellationTokenSource  reqCancellation 
)

Delete chunked upload file by upload ID. Please using try catch mechanism to call this function.

Parameters
[IN]strUploadID : Chunked upload ID. Get from CreateChunkedUploadID.
[IN]strUploadTempPath : Where to put temp file in QTS Turbo NAS. The same as CreateChunkedUploadID.
[IN]reqCancellation : Cancel API.
Returns
APIResult : API success or fail error code.
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.DeleteChunkedUploadFileAsync ( string  strUploadID,
string  strUploadTempPath,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Delete chunked upload file by upload ID.

Parameters
[IN]strUploadID : Chunked upload ID. Get from CreateChunkedUploadID.
[IN]strUploadTempPath : Where to put temp file in QTS Turbo NAS. The same as CreateChunkedUploadID.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task QtsHttp.FileStaion.IQtsHttpFileStation.DeleteFile ( FileEntry  deleteFileEntry,
CancellationTokenSource  reqCancellation 
)

Delete a file/folder in QNAP Turbo NAS. Please using try catch mechanism to call this function.

Parameters
[IN]deleteFileEntry : Delete entry in QNAP Turbo NAS.
[IN]reqCancellation : Cancel API.
Returns
N/A
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.DeleteFileAsync ( FileEntry  deleteFileEntry,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Delete a file/folder in QNAP Turbo NAS.

Parameters
[IN]deleteFileEntry : Delete entry in QNAP Turbo NAS.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task QtsHttp.FileStaion.IQtsHttpFileStation.DeleteFileByPath ( string  strDeletePath,
CancellationTokenSource  reqCancellation 
)

Delete a file/folder by path in QNAP Turbo NAS. Please using try catch mechanism to call this function.

Parameters
[IN]strDeletePath : Delete full path in QNAP Turbo NAS.
[IN]reqCancellation : Cancel API.
Returns
N/A
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.DeleteFileByPathAsync ( string  strDeletePath,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Delete a file/folder by path in QNAP Turbo NAS.

Parameters
[IN]strDeletePath : Delete full path in QNAP Turbo NAS.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task QtsHttp.FileStaion.IQtsHttpFileStation.DeleteShareLink ( ShareLink  ShareLink,
CancellationTokenSource  reqCancellation 
)

Delete share link. Please using try catch mechanism to call this function.

Parameters
[IN]ShareLink : Share link on QNAP Turbo NAS.
[IN]reqCancellation : Cancel API.
Returns
N/A
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.DeleteShareLinkAsync ( ShareLink  ShareLink,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Delete share link.

Parameters
[IN]ShareLink : Share link on QNAP Turbo NAS.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task QtsHttp.FileStaion.IQtsHttpFileStation.DeleteVideoTranscode ( string  strVideoFileFullPath,
CancellationTokenSource  reqCancellation 
)

Delete video transcode file. Please using try catch mechanism to call this function.

Parameters
[IN]strVideoFileFullPath : Delete video file full path in QNAP Turbo NAS.
[IN]reqCancellation : Cancel API.
Returns
N/A
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.DeleteVideoTranscodeAsync ( string  strVideoFileFullPath,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Delete video transcode file.

Parameters
[IN]strVideoFileFullPath : Delete video file full path in QNAP Turbo NAS.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
bool QtsHttp.FileStaion.IQtsHttpFileStation.DestroyRequest ( IRequestBase  request)

Destroy file station request after file station API complete.

Parameters
[IN]request : File station request.
Returns
true : Destroy file station request success.
false : Destroy file station request fail.
Task<Stream> QtsHttp.FileStaion.IQtsHttpFileStation.DownloadFile ( FileEntry  downloadFileEntry,
string  strToFilePath,
long  lOffset,
object  lpData,
SyncProgressCallback  pfHttpFSCallback,
CancellationTokenSource  reqCancellation 
)

Download a file to local. Please using try catch mechanism to call this function. Limitation : Download file name only support English format on Windows Phone.

Parameters
[IN]downloadFileEntry : Download file entry in QNAP Turbo NAS.
[IN]strToFilePath : Destination path in local.
[IN]llOffset : Resume download from offset.
[IN]reqCancellation : Cancel API.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : Callback function for notify API TotalBytesTransferred status.
Returns
Stream : Download file stream.
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.DownloadFileAsync ( FileEntry  downloadFileEntry,
string  strToFilePath,
long  lOffset,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Download a file to local. Limitation : Download file name only support English format on Windows Phone.

Parameters
[IN]downloadFileEntry : Download file entry in QNAP Turbo NAS.
[IN]strToFilePath : Destination path in local.
[IN]lOffset : Resume download from offset.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task<Stream> QtsHttp.FileStaion.IQtsHttpFileStation.DownloadFileByPath ( string  strDownloadFileFullPath,
string  strToFilePath,
long  lOffset,
object  lpData,
SyncProgressCallback  pfHttpFSCallback,
CancellationTokenSource  reqCancellation 
)

Download a file to local. Please using try catch mechanism to call this function. Limitation : Download file name only support English format on Windows Phone.

Parameters
[IN]strDownloadFileFullPath : Download file full path in QNAP Turbo NAS.
[IN]strToFilePath : Destination path in local.
[IN]lOffset : Resume download from offset.
[IN]reqCancellation : Cancel API.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : Callback function for notify API TotalBytesTransferred status.
Returns
Stream : Download file stream.
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.DownloadFileByPathAsync ( string  strDownloadFileFullPath,
string  strToFilePath,
long  lOffset,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

Download a file to local. Limitation : Download file name only support English format on Windows Phone.

Parameters
[IN]strDownloadFileFullPath : Download file full path in QNAP Turbo NAS.
[IN]strToFilePath : Destination path in local.
[IN]lOffset : Resume download from offset.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task QtsHttp.FileStaion.IQtsHttpFileStation.ExtractFiles ( string  strExtractedFileFullName,
string  strToPath,
string  strPWD,
ExtractMode  extractMode,
int  partTotalFileSize,
List< string >  partExtractfileList,
OverWrite  overWrite,
ExtractPathMode  extractPathMode,
object  lpData,
SyncProgressCallback  pfHttpFSCallback,
CancellationTokenSource  reqCancellation 
)

Extract files. Please using try catch mechanism to call this function.

Parameters
[IN]strExtractedFileFullName : Extracted file full path in QTS Turbo NAS.
[IN]strToPath : Path of the extracted files.
[IN]strPWD : Extraction password (can be null).
[IN]extractMode : Extraction mode.
[IN]partTotalFileSize : The total number of extracted files, if extractMode = QTS_EXTRACT_MODE_PART.
[IN]partExtractfileNameList : Name of the file to be extracted (can be more than one), if extractMode = QTSExtractMode.Part.
[IN]overWrite : Skip / Overwrite.
[IN]extractPathMode : Extracted path mode.
[IN]reqCancellation : Cancel API.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : Callback function for notify API progress rate.
Returns
N/A
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.ExtractFilesAsync ( string  strExtractedFileFullName,
string  strToPath,
string  strPWD,
ExtractMode  extractMode,
int  partTotalFileSize,
List< string >  partExtractfileList,
OverWrite  overWrite,
ExtractPathMode  extractPathMode,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Extract files.

Parameters
[IN]strExtractedFileFullName : Extracted file full path in QTS Turbo NAS.
[IN]strToPath : Path of the extracted files.
[IN]strPWD : Extraction password (can be null).
[IN]extractMode : Extraction mode.
[IN]partTotalFileSize : The total number of extracted files, if extractMode = QTS_EXTRACT_MODE_PART.
[IN]partExtractfileNameList : Name of the file to be extracted (can be more than one), if extractMode = QTS_EXTRACT_MODE_PART.
[IN]overWrite : Skip / Overwrite.
[IN]extractPathMode : Extracted path mode.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task<NASInfo> QtsHttp.FileStaion.IQtsHttpFileStation.GetDomainIPList ( CancellationTokenSource  reqCancellation)

Get hostname and external IP address of the QNAP Turbo NAS. Please using try catch mechanism to call this function.

Parameters
[IN]reqCancellation : Cancel API.
[OUT]NASInfo : Output hostname and external IP address.
Returns
QtsHttpNASInfo : Hostname and external IP address.
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.GetDomainIPListAsync ( object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Get hostname and external IP address of the QNAP Turbo NAS.

Parameters
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task<List<FileEntry> > QtsHttp.FileStaion.IQtsHttpFileStation.GetFileList ( string  strPath,
int  nStartIdx,
int  nFileLimit,
CancellationTokenSource  reqCancellation 
)

Get file list below specify path. Please using try catch mechanism to call this function.

Parameters
[IN]strPath : Specify folder path.
[IN]nStartIdx : Start index of get files.
[IN]nFileLimit : Number of get files.
[IN]reqCancellation : Cancel API.
Returns
List<FileEntry> : File list.
Remarks
File list include files and folders.
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.GetFileListAsync ( string  strPath,
int  nStartIdx,
int  nFileLimit,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Get file list below specify path.

Parameters
[IN]strPath : Specify folder path.
[IN]nStartIdx : Start index of get files.
[IN]nFileLimit : Number of get files.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task<int> QtsHttp.FileStaion.IQtsHttpFileStation.GetFileListCount ( string  strPath,
CancellationTokenSource  reqCancellation 
)

Get file list count below specify path. Please using try catch mechanism to call this function.

Parameters
[IN]strPath : Specify folder path.
[IN]reqCancellation : Cancel API.
Returns
int : File list count.
Remarks
File list count include files and folders.
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.GetFileListCountAsync ( string  strPath,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Get file list count below specify path.

Parameters
[IN]strPath : Specify folder path.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task<FileStatus> QtsHttp.FileStaion.IQtsHttpFileStation.GetFileStatus ( string  strPath,
CancellationTokenSource  reqCancellation 
)

Get file status. Please using try catch mechanism to call this function.

Parameters
[IN]strPath :File full path in QNAP Turbo NAS.
[IN]reqCancellation : Cancel API.
Returns
FileStatus : File status.
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.GetFileStatusAsync ( string  strPath,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Get file status.

Parameters
[IN]strPath :File full path in QNAP Turbo NAS.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
string QtsHttp.FileStaion.IQtsHttpFileStation.GetFileURL ( string  strFileFullPath)

Get file URL.

Parameters
[IN]strFileFullPath : File full path.
Returns
string : URL of file.
string QtsHttp.FileStaion.IQtsHttpFileStation.GetImgThumbURL ( string  strFileFullPath)

Get image thumbnail of file.

Parameters
[IN]strFileFullPath : File full path.
Returns
string : URL of image thumbnail file.
Task<List<FileEntry> > QtsHttp.FileStaion.IQtsHttpFileStation.GetShareFolderList ( CancellationTokenSource  reqCancellation)

Get share folder list of QNAP Turbo NAS. Please using try catch mechanism to call this function.

Parameters
[IN]reqCancellation : Cancel API.
Returns
List<FileEntry> : List of share folder.
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.GetShareFolderListAsync ( object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Get share folder list of QNAP Turbo NAS.

Parameters
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task<List<ShareLink> > QtsHttp.FileStaion.IQtsHttpFileStation.GetShareLinkList ( int  nFileLimit,
CancellationTokenSource  reqCancellation 
)

Get share link list. Please using try catch mechanism to call this function.

Parameters
[IN]nFileLimit : Number of share link list.
[IN]reqCancellation : Cancel API.
Returns
ShareLink : Share link list on QNAP Turbo NAS.
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.GetShareLinkListAsync ( int  nFileLimit,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Get share link list.

Parameters
[IN]nFileLimit : Number of share link list.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task<List<ExtractEntry> > QtsHttp.FileStaion.IQtsHttpFileStation.ListContentsOfExtractedFile ( string  strExtractedFileFullName,
int  nStartIdx,
int  nFileLimit,
CancellationTokenSource  reqCancellation 
)

List the contents of an extracted file. Please using try catch mechanism to call this function.

Parameters
[IN]strExtractedFileFullName : Extracted file full path in QTS Turbo NAS.
[IN]nStartIdx : Response files start index.
[IN]nFileLimit : Number of response files.
[IN]reqCancellation : Cancel API.
Returns
List<ExtractEntry> : Extracted file list.
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.ListContentsOfExtractedFileAsync ( string  strExtractedFileFullName,
int  nStartIdx,
int  nFileLimit,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] List the contents of an extracted file.

Parameters
[IN]strExtractedFileFullName : Extracted file full path in QTS Turbo NAS.
[IN]nStartIdx : Response files start index.
[IN]nFileLimit : Number of response files.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task QtsHttp.FileStaion.IQtsHttpFileStation.MoveFile ( FileEntry  fromEntry,
string  strToPath,
int  nMode,
object  lpData,
SyncProgressCallback  pfHttpFSCallback,
CancellationTokenSource  reqCancellation 
)

Move a file/folder from source to destination. Please using try catch mechanism to call this function.

Parameters
[IN]fromEntry : Source entry in QNAP Turbo NAS.
[IN]strToPath : Destination path in QNAP Turbo NAS.
[IN]nMode : Skip / Overwrite.
[IN]reqCancellation : Cancel API.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : Callback function for notify API progress rate.
Returns
N/A
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.MoveFileAsync ( FileEntry  fromEntry,
string  strToPath,
int  nMode,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Move a file/folder from source to destination.

Parameters
[IN]fromEntry : Source entry in QNAP Turbo NAS.
[IN]strToPath : Destination path in QNAP Turbo NAS.
[IN]nMode : Skip / Overwrite.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task QtsHttp.FileStaion.IQtsHttpFileStation.MoveFileByPath ( string  strFromPath,
string  strToPath,
int  nMode,
object  lpData,
SyncProgressCallback  pfHttpFSCallback,
CancellationTokenSource  reqCancellation 
)

Move a file/folder by path from source to destination. Please using try catch mechanism to call this function.

Parameters
[IN]strFromPath : Source full path in QNAP Turbo NAS.
[IN]strToPath : Destination path in QNAP Turbo NAS.
[IN]nMode : Skip / Overwrite.
[IN]reqCancellation : Cancel API.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : Callback function for notify API progress rate.
Returns
N/A
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.MoveFileByPathAsync ( string  strFromPath,
string  strToPath,
int  nMode,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Move a file/folder by path from source to destination.

Parameters
[IN]strFromPath : Source full path in QNAP Turbo NAS.
[IN]strToPath : Destination path in QNAP Turbo NAS.
[IN]nMode : Skip / Overwrite.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task QtsHttp.FileStaion.IQtsHttpFileStation.RenameFile ( string  strRenamePath,
string  strNewName,
CancellationTokenSource  reqCancellation 
)

Rename a file/folder in QNAP Turbo NAS. Please using try catch mechanism to call this function.

Parameters
[IN]strRenamePath : Rename full path in QNAP Turbo NAS.
[IN]strNewName : New folder/file name.
[IN]reqCancellation : Cancel API.
Returns
N/A
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.RenameFileAsync ( string  strRenamePath,
string  strNewName,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Rename a file/folder in QNAP Turbo NAS.

Parameters
[IN]strRenamePath : Rename full path in QNAP Turbo NAS.
[IN]strNewName : New folder/file name.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task<List<FileEntry> > QtsHttp.FileStaion.IQtsHttpFileStation.SearchFile ( string  strPath,
string  strQuery,
int  nFileLimit,
CancellationTokenSource  reqCancellation 
)

File search. Please using try catch mechanism to call this function.

Parameters
[IN]strPath :Search file path in QNAP Turbo NAS.
[IN]strQuery : Query keyword.
[IN]nFileLimit : Number of response file list.
[IN]reqCancellation : Cancel API.
Returns
List<FileEntry> : List of files.
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.SearchFileAsync ( string  strPath,
string  strQuery,
int  nFileLimit,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] File search.

Parameters
[IN]strPath :Search file path in QNAP Turbo NAS.
[IN]strQuery : Query keyword.
[IN]nFileLimit : Number of response file list.
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task<FileStatus> QtsHttp.FileStaion.IQtsHttpFileStation.UpdateFileModifyDate ( string  strUpdateFilePath,
long  modifyTime,
CancellationTokenSource  reqCancellation 
)

Set folder/file modification time. Please using try catch mechanism to call this function.

Parameters
[IN]strUpdateFilePath : Update file full path in QNAP Turbo NAS.
[IN]modifyTime : Epoch time (seconds since 1970-01-01 00:00:00 UTC).
[IN]reqCancellation : Cancel API.
Returns
FileStatus : File status of modify time file/folder.
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.UpdateFileModifyDateAsync ( string  strUpdateFilePath,
long  modifyTime,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Set folder/file modification time.

Parameters
[IN]strUpdateFilePath : Update file full path in QNAP Turbo NAS.
[IN]modifyTime : Epoch time (seconds since 1970-01-01 00:00:00 UTC).
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.
Task QtsHttp.FileStaion.IQtsHttpFileStation.UploadFileByPath ( string  strUploadFilePath,
string  strToFilePath,
object  lpData,
Stream  streamUpload,
SyncProgressBtyesCallback  pfHttpFSCallback,
CancellationTokenSource  reqCancellation 
)

Upload a file to QNAP Turbo NAS. Please using try catch mechanism to call this function. Limitation : Cannot upload file size exceed 30MB.

Parameters
[IN]strUploadFileFullPath : Local path of upload file.
[IN]strToFilePath : Destination path in QNAP Turbo NAS.
[IN]reqCancellation : Cancel API.
[IN]lpData : Callback function owner.
[IN]streamUpload : Upload stream.
[IN]pfHttpFSCallback : Callback function for notify API TotalBytesTransferred status.
Returns
N/A
Task<IRequestBase> QtsHttp.FileStaion.IQtsHttpFileStation.UploadFileByPathAsync ( string  strUploadFilePath,
string  strToFilePath,
Stream  streamUpload,
object  lpData,
AsyncResponseCallback  pfHttpFSCallback 
)

[Async] Upload a file by path to QNAP Turbo NAS. Limitation : Cannot upload file size exceed 30MB.

Parameters
[IN]strUploadFileFullPath : Local path of upload file.
[IN]strToFilePath : Destination path in QNAP Turbo NAS.
[IN]streamUpload : Upload file stream
[IN]lpData : Callback function owner.
[IN]pfHttpFSCallback : File station async callback function.
Returns
IRequestBase : File station request object.

The documentation for this interface was generated from the following file: