[Backend] Include date range and wallet prefix in Content-Disposition filename for CSV exports
Overview
When downloading accounting exports from backend/src/services/export.service.ts, the response sets a generic filename (streams-export.csv), causing multiple downloads in a user's folder to overwrite or become indistinguishable.
Problem
- Accountants exporting monthly CSV reports for multiple wallets cannot tell which file corresponds to which wallet or date window from the filename alone.
Proposed Changes
- Format the
Content-Dispositionfilename asflowfi-streams-<walletPrefix>-<startDate>-to-<endDate>.csv(or current ISO date if no range filter is passed). - Sanitize any user-supplied parameters to prevent header injection.
Acceptance Criteria
- [ ]
Content-Dispositionheader contains a descriptive, sanitized filename with wallet prefix and date. - [ ] Unsafe characters are stripped from filename segments.
- [ ] Unit test verifying filename generation across different filter combinations.
@Favouratambi has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hi maintainer, I'd love to work on this issue. Assign so we will get to work
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Favouratambi to this issue.
@Johnsource-hub has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Please Maintainer, assign this issue to me. Thank you so much
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Johnsource-hub to this issue.
@ezej0687-creator has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hi Maintainer,
I have gone through this project and I noticed that it's something I can do. Please can you assign this project to me.
Thank you!
ℹ️ Repo Maintainers: To accept this application, review their application or assign @ezej0687-creator to this issue.
@DonaldXoftDev has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Can I take this on? I can deliver real quick!
ℹ️ Repo Maintainers: To accept this application, review their application or assign @DonaldXoftDev to this issue.
@innocentharuna has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
hey maintainer, please kindly assign this to me, i can surely fix it
ℹ️ Repo Maintainers: To accept this application, review their application or assign @innocentharuna to this issue.
@DooseWayo has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Can I work on this task?
ℹ️ Repo Maintainers: To accept this application, review their application or assign @DooseWayo to this issue.
@Yilkash has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Can i work on this?
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Yilkash to this issue.
@VeronicDev has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hello Maintainer, I can fix this please assign.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @VeronicDev to this issue.
Congratulations, @DooseWayo! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.
🧑💻 @DooseWayo: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
This issue has been completed by @DooseWayo as part of the Stellar Wave Program's 10th Wave 🥳
😎 @DooseWayo: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.