improve file uploading support
improve file uploading support