> For the complete documentation index, see [llms.txt](https://docs.eueno.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eueno.io/eueno-libraries/eueno-lib-browser/getdetailmultiencryptedfiles.md).

# getDetailMultiEncryptedFiles()

This method is used to get detail for a list of encrypted files.

### Syntax

```javascript
getDetailMultiEncryptedFiles(
  ids: Array<string> | Array<number>,
  token: string,
  isShare: boolean,
  account: string,
  onProcess?: (torrent: any, remaining: any) => void
)
```

### Params

<table><thead><tr><th width="128">Name</th><th width="159">Type</th><th width="100">Required</th><th>Description</th></tr></thead><tbody><tr><td>ids</td><td>Array&#x3C;string> | Array&#x3C;number></td><td>Yes</td><td>List of file id.</td></tr><tr><td>token</td><td>string</td><td>Yes</td><td>The authentication token.</td></tr><tr><td>isShare</td><td>boolean</td><td>Yes</td><td>If you get file detail of files that are shared, <code>isShare</code> will be <code>true</code>, else <code>isShare</code> will be <code>false.</code></td></tr><tr><td>account</td><td>string</td><td>Yes</td><td>User Owallet address</td></tr><tr><td>onProcess</td><td>function</td><td>No</td><td><p>This function is used to handle the process get a file. </p><p>The first param <code>torrent</code> is an object that includes some torrent information (<a href="https://webtorrent.io/docs">see more</a>).</p><p>The second param <code>remaining</code> is the time remaining to get file.</p></td></tr></tbody></table>

### Example

```javascript
import { getDetailMultiEncryptedFiles } from "@eueno/lib-browser";import { useDispatch, useSelector } from "react-redux";

const getFileListDetail = async () => {
    const ids = ["20086"];
    const account = "0x6c00ba5420f8f86d...821c260f1a093"

    try {
      const encryptDetail = await getDetailMultiEncryptedFiles(
        ids,
        token,
        false,
        account,
        (torrent, remaining) => {
          console.log(torrent, remaining)
        }
      );

      console.log(encryptDetail);
    } catch (error) {
      console.log(error);
    }
};
```

### Response

```
"data": [
      {
            "id": "20086",
            "name": "loading-icon (1).png",
            "nameNo": 1,
            "bufferData": [137, 80, 78, 71, 12, 10, 26,...],
            "virtualPath": "0xa4ea6...bf0e65c8a32/new/loading-icon (1).png",
            "virtualCloudPath": "0xa4ea61c9...89531-f882d37lllmz.loading-icon (1).png",
            "path": "0xa4ea61c99...82d37lllmz.loading-icon (1).png",
            "url": "https://node1-gateway-ipfs.eueno.io/ipfs/Qm...34ASACrTRDbyLiWi3",
            "backupUrl": "https://node1-gateway-ipfs.eueno.io/ipfs/QmVY...CrTRDbyLiWi3",
            "size": "26529",
            "mimeType": "image/png",
            "method": "ENCRYPT",
            "torrentSize": 4,
            "torrentUrl": "https://node1-gateway-ipfs.eueno.io/ipfs/QmSU...Z2FNvgzkJ7",
            "backupTorrentUrl": "https://node1-gateway-ipfs.eueno.io/ipfs/QmSUzA6...Z2FNvgzkJ7",
            "encryptKey": "af071851a69...b1a2a8ae52da43a76",
            "createdAt": "2023-05-30T04:26:30.629Z",
            "updatedAt": "2023-05-30T04:26:33.912Z"
        },
  ]
```
