File list input with default value returns "Invalid upload file" when accessed through Web App
- Dominant language
- TypeScript
- Stars
- 156k
- Forks
- 24.6k
- Avg merge
- 22h 9m
- Merged PRs (30d)
- 610
Description
### Self Checks
- [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542).
- [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general).
- [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones.
- [x] I confirm that I am using English to submit this report, otherwise it will be closed.
- [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
- [x] Please do not modify this template :) and fill in all the required fields.
### Dify version
1.17.0
### Cloud or Self Hosted
Cloud
### Steps to reproduce
1. Create a blank Chatflow application.
2. Add a File List input field, set a Default Value, and uncheck Required.
3. In the LLM node, enable Vision and set the variable to the one created in step 2.
### ✔️ Expected Behavior
The file list with the configured default value should be readable through both Preview and WebApp.
### ❌ Actual Behavior
The file list works correctly through Preview, but returns Invalid upload file when accessed through the WebApp
Preview
WebApp
Contributor guide
Research direction
Reproduce the issue with a blank Chatflow, an optional File List input with a default value, and Vision enabled in the LLM node. Compare the Preview and WebApp paths and trace where the WebApp rejects the configured file list. Done means the default file list is readable in both Preview and WebApp without an "Invalid upload file" error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100