handles Zip attachment exports of large files

resolves #1118.