PipedreamHQ / PipedreamHQ/pipedream
[BUG] File attachments in workflows can have the same name
Open
bug
tracked internally
triaged
- Dominant language
- JavaScript
- Stars
- 11.7k
- Forks
- 5.8k
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 102
Description
**Describe the bug**
File attachments to the workflow don't have a unique namespace enforced; you can attach two files with the same name, and it's ambiguous which one would be loaded with $attachments[fileName]
**To Reproduce**
1. Make a workflow
2. Attach a file in the workflow
3. Attach the same file again.
**Expected behavior**
An error saying there's already a file with that name.
**Screenshots**

**Desktop (please complete the following information):**
Chrome browser
Contributor guide
Assessment
This issue has not been assessed yet.