3 ms·
For zip file it is not just to save bandwidth, it is also to save disk space as we don't know yet how many user will use it, we preferred to be cautious but in
by apancyborg 10y ago
For zip file it is not just to save bandwidth, it is also to save disk space as we don't know yet how many user will use it, we preferred to be cautious but in the future you are right we can give straight the file once we know how much disk space will be needed to sustain it.
For the returned document name, this is up to discussion if a lot of user ask for it we will change it.
Thanks for using the apps and for your comment.
- mixedbit 10y agoYou can store it gziped on your disks, just add 'Content-Encoding' and 'Content-Type' headers while returning it and remove .zip extension.
- apancyborg 10y agofixed
- martin-adams 10y agoAs a user, if I ask for a DOC I want a DOC. If your service gives me a zip, it's not what I asked for. As a programmer, this is quite simple to solve as others have said how (store gzipped and serve with correct headers).
- apancyborg 10y agoUnderstood, we will change that.
- codingdave 10y agoI do conversions like this as part of an app, and I never save to disk - I create the file in memory, and return it directly to the HTTP response as a file download. What stack are you running that makes you save to disk? (Because that also would be a deal-breaker for using this on confidential documents, if you ever allow uploads)
- apancyborg 10y agoFor upload we could do file i/o in memory, our stack allow us. But right now if we did it in memory we would run out of memory.