fix bug about file upload & some adjust