pub async fn upload_files_fromurl( &self, file_names: Vec<String>, urls: Vec<String>, ) -> Result<UploadFilesFromurlResponse, KineticaError>
Upload one or more files to KiFS from a URL list
Uploads one or more files to KiFS.
Each file path must reside in a top-level KiFS directory, i.e. one of the directories listed in /show/directories. The user must have write permission on the directory. Nested directories are permitted in file name paths. Directories are delineated with the directory separator of ‘/’. For example, given the file path ‘/a/b/c/d.txt’, ‘a’ must be a KiFS directory.
These characters are allowed in file name paths: letters, numbers, spaces, the path delimiter of ‘/’, and the characters: ‘.’ ‘-’ ‘:’ ‘[’ ‘]’ ‘(’ ‘)’ ‘#’ ‘=’.
file_names- An array of full file name paths to be used for the files uploaded to KiFS. File names may have any number of nested directories in their paths, but the top-level directory must be an existing KiFS directory. Each file must reside in or under a top-level directory. A full file name path cannot be larger than 1024 characters.urls- List of URLs to upload, for each respective file infile_names.
pub async fn upload_files_fromurl_with_opts( &self, file_names: Vec<String>, urls: Vec<String>, options: UploadFilesFromurlRequestOptions, ) -> Result<UploadFilesFromurlResponse, KineticaError>
Upload one or more files to KiFS from a URL list
Uploads one or more files to KiFS.
Each file path must reside in a top-level KiFS directory, i.e. one of the directories listed in /show/directories. The user must have write permission on the directory. Nested directories are permitted in file name paths. Directories are delineated with the directory separator of ‘/’. For example, given the file path ‘/a/b/c/d.txt’, ‘a’ must be a KiFS directory.
These characters are allowed in file name paths: letters, numbers, spaces, the path delimiter of ‘/’, and the characters: ‘.’ ‘-’ ‘:’ ‘[’ ‘]’ ‘(’ ‘)’ ‘#’ ‘=’.
file_names- An array of full file name paths to be used for the files uploaded to KiFS. File names may have any number of nested directories in their paths, but the top-level directory must be an existing KiFS directory. Each file must reside in or under a top-level directory. A full file name path cannot be larger than 1024 characters.urls- List of URLs to upload, for each respective file infile_names.options- The optional parameters; any left unset take the server’s defaults.
pub async fn upload_files_fromurl_raw( &self, request: &UploadFilesFromurlRequest, ) -> Result<UploadFilesFromurlResponse, KineticaError>
Sends a pre-built UploadFilesFromurlRequest to the /upload/files/fromurl endpoint.
pub async fn upload_files_fromurl_from_url( &self, url: &str, request: &UploadFilesFromurlRequest, ) -> Result<UploadFilesFromurlResponse, KineticaError>
Sends a pre-built UploadFilesFromurlRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.