There is a compiled in limit in AOLServer 4.0 for
uploads (I think it is 1mb). You can increase it by
setting maxinput in the nssock section of your config
file like this:
ns_section "ns/server/${server}/module/nssock"
...
# maxinput added in aolserver 4.0 with a default of 1mb.
# we will set it to 64mb
ns_param maxinput [expr 64 * 1024 * 1024]
...