> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# upload_files_fromurl

### upload\_files\_fromurl

<ul>
  <li>
    upload\_files\_fromurl(\
    &#x20;file\_names: string\[],\
    &#x20;urls: string\[],\
    &#x20;options?: Record\<string, string>,\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/javascript/types/GPUdbCallback.md),\
    ): Promise\<[UploadFilesFromurlResponse](https://docs.kinetica.com/content/api/javascript/interfaces/UploadFilesFromurlResponse.md)>

    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: '.' '-' ':' '\[' ']' '(' ')' '#' '='.

    #### Parameters

    <ul>
      <li>
        file\_names: string\[]

        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.
      </li>

      <li>
        urls: string\[]

        List of URLs to upload, for each respective file in `file_names`.
      </li>

      <li>
        `Optional`options: Record\<string, string>

        Optional parameters.
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/javascript/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[UploadFilesFromurlResponse](https://docs.kinetica.com/content/api/javascript/interfaces/UploadFilesFromurlResponse.md)>

    Promise\<Types.UploadFilesFromurlResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:15065](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L15065)</li>
    </ul>
  </li>
</ul>

### upload\_files\_fromurl\_request

<ul>
  <li>
    upload\_files\_fromurl\_request(\
    &#x20;request: [UploadFilesFromurlRequest](https://docs.kinetica.com/content/api/javascript/interfaces/UploadFilesFromurlRequest.md),\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/javascript/types/GPUdbCallback.md),\
    ): Promise\<[UploadFilesFromurlResponse](https://docs.kinetica.com/content/api/javascript/interfaces/UploadFilesFromurlResponse.md)>

    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: '.' '-' ':' '\[' ']' '(' ')' '#' '='.

    #### Parameters

    <ul>
      <li>
        request: [UploadFilesFromurlRequest](https://docs.kinetica.com/content/api/javascript/interfaces/UploadFilesFromurlRequest.md)

        Request object containing the parameters for the operation
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/javascript/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[UploadFilesFromurlResponse](https://docs.kinetica.com/content/api/javascript/interfaces/UploadFilesFromurlResponse.md)>

    Promise\<Types.UploadFilesFromurlResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:15025](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L15025)</li>
    </ul>
  </li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.