You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in SessionManager in Alamofire Swift 5. Is it recommended to use the usingThreshold parameter if i will be uploading atleast 1GB or maybe greater?
If so, what is recommended threshold? right now in my code my threshold is set at 100MB value if its between 50MB to 500MB upload file size and 500MB threshold if its more than 500MB?
sessionManager.upload(
multipartFormData: { multipartFormData in
// some code
},
usingThreshold: 500_000_000, // 1GB file size to be upload
to: urlRequest.url!,
headers: headers,
encodingCompletion: { encodingResult in
// some code
})
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi guys,
I would like to confirm or clarify about the function of
in SessionManager in Alamofire Swift 5. Is it recommended to use the
usingThreshold
parameter if i will be uploading atleast 1GB or maybe greater?If so, what is recommended threshold? right now in my code my threshold is set at 100MB value if its between 50MB to 500MB upload file size and 500MB threshold if its more than 500MB?
Beta Was this translation helpful? Give feedback.
All reactions