Bug fix for nginx upload module