Refactor add_asset_to_envelope() to stop duplicate filenames and reduce code nesting to fix #155
Merge pull request #156 from eosrei/dupefilename

Refactor add_asset_to_envelope() to stop duplicate filenames and reduce code nesting