Skip to content

Conversation

kosinal
Copy link
Contributor

@kosinal kosinal commented Jul 30, 2016

I had a problem, when I used FileDataSource, but I need to rename it due to security (sending ps1, tmp or vbs files). When I used addAttachemnt("fixedName", new FileDataSource(...)).
The problem is in the DataHandler.getName, which use the name of the data source.

When I created wrapper NamedDataSource, I am able to rename the file and I can use the original name as well.

@bbottema bbottema merged commit 1320cd1 into bbottema:master Jul 30, 2016
bbottema added a commit that referenced this pull request Jul 30, 2016
@bbottema
Copy link
Owner

bbottema commented Jul 30, 2016

Released in 4.1.1. Thanks for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants