Re: problems with uploads to wordpress
Martin D Kealey <[email protected]> Thu, 8 Dec 2011 17:43:27 +1300 (NZDT)
| Newsgroups | gmane.org.user-groups.linux.new-zealand.general |
|---|---|
| Message-ID | <alpine.DEB.2.00.1112081732150.15499@feathers> |
> On Tue, 06 Dec 2011 13:03:49 +1300, Steve Holdoway wrote:
> > On Tue, 2011-12-06 at 12:48 +1300, Martin D Kealey wrote:
> > > Of course, you may allow compression as well, in which case (if the c=
lient
> > > and server agree) the ratio may be 0.33 or less.
> >
> > As the OP was talking .xpi files, which are basically .zip archives, th=
e
> > compression will be effectively zero...
And of course, compressed files do a pretty good job of being "random" from
the point of view of octet distribution.
Going back for a moment, I think my comment about Base64 is a red herring;
the only time it's likely applicable is for webmail, because it knows about
MIME; anything else will probably use URL "percent" encoding, both for GET
and POST.
I also missed a couple of other characters which need to be encoded ("=3D" =
and
"&") leaving at most just 92 characters that don't need to be encoded, and
some client might encode other characters because it its author's name
contains a "=CE=9E".
So in summary, it's safest just to assume a multiplier of 3.
-Martin
_______________________________________________
NZLUG mailing list [email protected]
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug