Fix ios extension crash and ability to share from files app (#1852)
MM-11098 Fix ios extension crash and ability to share from files app
This commit is contained in:
parent
11da5e22bc
commit
5d12387d3b
2 changed files with 3 additions and 3 deletions
|
|
@ -26,7 +26,7 @@
|
|||
-(void)setRequestWithGroup:(NSString *)requestWithGroup certificateName:(NSString *)certificateName {
|
||||
self.requestWithGroup = requestWithGroup;
|
||||
self.certificateName = certificateName;
|
||||
self.isBackground = certificateName == nil;
|
||||
self.isBackground = [certificateName length] == 0;
|
||||
}
|
||||
|
||||
-(void)setDataForRequest:(NSDictionary *)data forRequestWithGroup:(NSString *)requestWithGroup {
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ export default class ExtensionPost extends PureComponent {
|
|||
break;
|
||||
default: {
|
||||
const fullPath = item.value;
|
||||
const filePath = fullPath.replace('file://', '');
|
||||
const filePath = decodeURIComponent(fullPath.replace('file://', ''));
|
||||
const fileSize = await RNFetchBlob.fs.stat(filePath);
|
||||
const filename = fullPath.replace(/^.*[\\/]/, '');
|
||||
const extension = filename.split('.').pop();
|
||||
|
|
@ -612,7 +612,7 @@ export default class ExtensionPost extends PureComponent {
|
|||
post,
|
||||
requestId: generateId().replace(/-/g, ''),
|
||||
useBackgroundUpload: this.useBackgroundUpload,
|
||||
certificate,
|
||||
certificate: certificate || '',
|
||||
};
|
||||
|
||||
this.setState({sending: true});
|
||||
|
|
|
|||
Loading…
Reference in a new issue