Fix iOS Share extension alert message when file size is larger than allowed (#3792)
This commit is contained in:
parent
a17983c1e4
commit
1e42a87826
2 changed files with 8 additions and 5 deletions
|
|
@ -175,6 +175,7 @@ export default function configureAppStore(initialState) {
|
|||
const entities = {
|
||||
...state.entities,
|
||||
general: {
|
||||
...state.entities.general,
|
||||
credentials: {
|
||||
url,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -82,11 +82,13 @@ import os.log
|
|||
guard let identifier = session.configuration.identifier else {return}
|
||||
do {
|
||||
let jsonObject = try JSONSerialization.jsonObject(with: data, options: []) as! NSDictionary
|
||||
let fileInfos = jsonObject.object(forKey: "file_infos") as! NSArray
|
||||
if fileInfos.count > 0 {
|
||||
let fileInfoData = fileInfos[0] as! NSDictionary
|
||||
let fileId = fileInfoData.object(forKey: "id") as! String
|
||||
UploadSessionManager.shared.appendCompletedUploadToSession(identifier: identifier, fileId: fileId)
|
||||
if jsonObject.object(forKey: "file_infos") != nil {
|
||||
let fileInfos = jsonObject.object(forKey: "file_infos") as! NSArray
|
||||
if fileInfos.count > 0 {
|
||||
let fileInfoData = fileInfos[0] as! NSDictionary
|
||||
let fileId = fileInfoData.object(forKey: "id") as! String
|
||||
UploadSessionManager.shared.appendCompletedUploadToSession(identifier: identifier, fileId: fileId)
|
||||
}
|
||||
}
|
||||
} catch {
|
||||
if #available(iOS 12.0, *) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue