Re:Show HN: Transform any web page into a document
by apancyborg on Thursday September 01, 2016 @04:11AM
(#12403709)
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.
[ Parent
| on HN ]
Re:Show HN: Transform any web page into a document
by martin-adams on Thursday September 01, 2016 @07:28AM
(#12404407)
As 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).
Re:Show HN: Transform any web page into a document
by apancyborg on Thursday September 01, 2016 @09:20AM
(#12405003)
Understood, we will change that.
Re:Show HN: Transform any web page into a document
by mixedbit on Thursday September 01, 2016 @04:19AM
(#12403725)
You can store it gziped on your disks, just add 'Content-Encoding' and 'Content-Type' headers while returning it and remove .zip extension.
Re:Show HN: Transform any web page into a document
by apancyborg on Friday September 02, 2016 @08:26AM
(#12412522)
fixed
Re:Show HN: Transform any web page into a document
by codingdave on Thursday September 01, 2016 @09:21AM
(#12405005)
I 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)
Re:Show HN: Transform any web page into a document
by apancyborg on Friday September 02, 2016 @08:32AM
(#12412556)
For 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.