We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nat.upload('http://uploader.示例.com', { path: 'file:///tmp/intapp/nat/sample/localFile', method: 'PUT', formData: { framework: 'weex/nat' }, headers: { // headers参数设置在ios端无效 (ios11.4) 'x-app': 'nat/0.0.8', 'x-sign': 'bfbbf4c1f087d972' } }, { onProgress: (p) => { console.log('Progressing: ' + p) } }, (err, ret) => { console.log(ret) })
麻烦有时间的话帮忙看下,谢谢!
The text was updated successfully, but these errors were encountered:
你好,你可能需要修改一下 ios项目Pods NetTransfer -> NetTransfer.m ->uploadWithData函数中代码(在209行左右), NSString boundary = [self md5:[@"nat" stringByAppendingFormat:@"%lf",[[NSDate date] timeIntervalSince1970]]]; //cookie // NSDictionary options = nil; // BOOL trustAllHosts = [[command argumentAtIndex:6 withDefault:[NSNumber numberWithBool:YES]] boolValue]; // allow self-signed certs NSDictionary* headers = params[@"headers"]; NSDictionary *formData = params[@"formData"];
if (params[@"filename"]) { filename = params[@"filename"]; }
原先: NSDictionary* headers = params[@"header"]; 正确代码: NSDictionary* headers = params[@"headers"];
希望可以更正一下~~~Thank You~
Sorry, something went wrong.
@muzin Thanks
No branches or pull requests
麻烦有时间的话帮忙看下,谢谢!
The text was updated successfully, but these errors were encountered: