i’m trying to send users a polite error message when they try to upload
a file
above a certain size (1.5MB).
we’re using lightpd with rails, and lighttpd is configured to not allow
requests
larger than 1.5MB. that has two flaws: 1.5MB has to be uploaded before i
fails.
i’d like to read the file size before is uploaded, to not waste user’s
time or
our bandwidth. and when the limit is hit, lighttpd just returns a blank
page.
can’t figure out how to get it to return a more useful error message
instead.
any help greatly appreciated, for how to do this in ruby/rails, or
through
lighttpd.config.
best,
john
This message was sent using IMP, the Internet Messaging Program.