You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 13, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 13, 2026. It is now read-only.
[BUG] S3 Directory Loader fails when prefix is a directory (e.g. docs or docs/) – EISDIR error #4688
Describe the bug
When configuring an S3 Directory Loader, Flowise refuses prefixes that end with a trailing slash (e.g. docs/). It only accepts prefixes like docs/1, and then processes only the objects whose keys start with that extra character. Attempting to use a bare folder prefix results in an error:
Failed to preview chunks: Error: documentStoreServices.previewChunksMiddleware - Error: documentStoreServices.previewChunks - Error: documentStoreServices.splitIntoChunks - Failed to load data from bucket my-bucket: Failed to download file docs/ from S3 bucket my-bucket: EISDIR: illegal operation on a directory, open '/tmp/s3fileloader-DlNmPf/docs/'
To Reproduce
Steps to reproduce the behavior:
Go to Data Sources → New Loader → S3 Directory Loader.
Enter any valid bucket name
Set your prefix (docs/ in my case)
Click Preview
See the error above.
Expected behavior
Flowise should traverse the entire folder (docs/) and process every object inside it, without requiring an additional character after the trailing slash.
Setup
Installation: docker
Flowise Version: 3.0.1
OS: Windows 11
Browser: Google Chrome
Additional context
Flowise should traverse the entire folder (docs/) and process every object inside it, without requiring an additional character after the trailing slash.
Root cause: S3Directory listed objects by Prefix and treated keys ending in / as files, so folder markers could be downloaded and written to directory paths, producing EISDIR.
Fix: Skip keys ending in / before download and add focused coverage for folder marker objects.
Validation: git diff --check passed; Focused Jest blocked by repository engine gate: Node ^24 and pnpm ^10.26.0 required; local shell reported Node v26.0.0 and pnpm 10.6.5.
Activity
vicksiyi commentedon Jun 24, 2026
I opened #6561 with a small scoped fix.
Root cause: S3Directory listed objects by Prefix and treated keys ending in / as files, so folder markers could be downloaded and written to directory paths, producing EISDIR.
Fix: Skip keys ending in / before download and add focused coverage for folder marker objects.
Validation: git diff --check passed; Focused Jest blocked by repository engine gate: Node ^24 and pnpm ^10.26.0 required; local shell reported Node v26.0.0 and pnpm 10.6.5.