From: Shai Rosenfeld Date: 2007-07-10T21:26:11+09:00 Subject: Re: Get file size before download (noobish question) > http://trac.lighttpd.net/trac/wiki/server.max-request-sizeDetails > > HTH, > > Felix sweet. works great - when i upload a good file (small enough) everything works, and when it is too large, the server doesn't respond, and i get a "The connection to the server was reset while the page was loading." message. that's the good part... but how do i inform the user that he was blocked because of the filesize? i understand that there is a validates_filesize_of or something similar-named, but i don't have rmagick and i understood that was a requirement ... so i'm thinking of using the script above, but this fails to deliver a notice either ... i'm working on firefox::ubntu (linux debian release) ... could this be the prob with the javascript? bottom line - lighttpd limits filesize, but how do i notify the user in the best manner? (this could all be done on the client-side, as lighttpd blocks the file ... but if the model validation works ... that would go too ) -- Posted via http://www.ruby-forum.com/.