On Wednesday, April 11, 2012 5:56:22 AM UTC-4, Changju wrote: > > I put a file on the static folder, let say 'testApp/static'. > And I download the file on static folder, the downloaded file differs from > the original file in size. > Original file size is 15,227,904 and 15,096,832 for downloaded file. >
This is a known rocket bug, which was reported to the rocket maintainer a long time ago but was not fixed. Use a different webserver, e.g. tornado or scgi (see "anyserver", for example). Note: do not just use apache/nginx to redirect to rocket - you must not use rocket at all to solve this problem. See: https://github.com/explorigin/Rocket/issues/1 for the upstream bug report, https://groups.google.com/d/topic/web2py/1_b63bhBeQs/discussion for a previous discussion in this mailing list.