J
jts-law
Guest
Peter, I changed my map to match your contentType and all arguments for my download function (DownloadAcctCat), commented out my method and added your ReadMultipart (renamed to DownloadAcctCat), and changed image file name to "progress-oe.png". The test program returns 4 parts. If I use the download URL in a browser I still get a file with the boundary and other information. localhost:8810/.../DownloadProfitAcctCat Returns a file named "DownloadProfitAcctCat" with the following content: --my-part-bound Content-Type: application/json {"part-01":1} --my-part-bound Content-Type: image/png ‰PNG [file contents...] --my-part-bound Content-Type: text/plain this is part number 3 --my-part-bound Content-Type: application/json {"part-04":4} --my-part-bound-- I also tried commenting out the entity:AddPart() calls for cnt = 0 and 1 (leaving just the actual file) and the download file is still named "DownloadProfitAcctCat" and it has the boundary and Content-Type lines. With this example, I want to be able to call " localhost:8810/.../DownloadProfitAcctCat" from the browser and have it download a file named "progress-oe.png" that is an actual image file. Louis
Continue reading...
Continue reading...