Questions tagged [alamofire-upload]
16 questions
2
votes
1 answer
Uploading a file problem with Alamofire Swift 5?
I want to upload a simple file using,
pod 'Alamofire', '~> 5.0.0-rc.3'
But I cannot see the file in the linux host's folder.
upload.php file:

iamburak
- 3,508
- 4
- 34
- 65
1
vote
0 answers
couldn’t be opened because there is no such file."
func sendFiles(fileURLs: [URL], studentID: String, assignmentID: Int) {
let endpoint = "http://192.168.10.101:8000/course/file_assigment/"
let headers: HTTPHeaders = [
"Content-type": "multipart/form-data"
…

Yabindra Bhujel
- 11
- 1
1
vote
0 answers
Alamofire Chunked Upload - How API knows when its the last chunk?
I have a Golang web server that I have written to handle large file uploads 30GB or more. In a proof of concept using Dropzone.js I can upload files of any size with no issue as long as they are chunked.
The way DropzoneJS.js implemented this is…

Edward S.
- 331
- 2
- 15
0
votes
0 answers
I am trying to upload file through alamofire multipart with auth token but it is not woking
here is my code but it is giving me error here
public func documentPicker(_ controller: UIDocumentPickerViewController, didPickDocumentsAt urls: [URL]) {
guard let myURL = urls.first else {
return
}
print("import…
0
votes
0 answers
Swift Alamofire.upload: Type of expression is ambiguous without more context
I'm getting the Type of expression is ambiguous without more context error in my code and I'm not sure why. I used the same method before and I never got this error before.
I saw similar posts here regarding this error, but none of the solutions…

lex
- 113
- 8
0
votes
0 answers
How does `Alamofire.Session.upload(multipartFormData:to:method:headers:)` incorporate the payload into the request?
I'm creating a REST API from scratch for a preexisting iOS app whose API source code is, for all intents and purposes, no longer available. This means I'm analyzing how each endpoint expects requests sent to it to be formatted. One of those…

shoe
- 952
- 1
- 20
- 44
0
votes
0 answers
How to multipart upload nested json parameter with Alamofire?
now I'm using Alamofire to connecting my iOS app to server with apis.
Our server guy made post request that upload images and some information of this.
And this data send to server with POST method and multipart.
private let files =…

999rimmy
- 35
- 3
0
votes
4 answers
Download & Upload zip file
I am trying to mimic the following curl:
curl -v -F file=@/Users/myuser/Downloads/shelly-homekit-Shelly25.zip http://10.0.1.7/update
to use the curl command I downloaded the zip file and saved it to my computer.
My app should download the zip file,…

user13804239
- 1
- 2
0
votes
0 answers
How do I save the JSON data into my localhost? http post response says "200"
let parameters = ["lat": latitude, "lng": longitude]
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.addValue("application/json", forHTTPHeaderField: "Content-type")
guard let httpBody = try?…

Alexander Choi
- 101
- 1
- 1
- 6
0
votes
1 answer
Uploading multiple images(with parameters) using multipart form data - Alamofire 5
I have been trying to upload multiple images(3) with parameters using alamofire but i cant seem to do it.(My lack of knowledge). Could someone kindly help me out with this?
This is what i have tried
{
let headers: HTTPHeaders = [
…

Zyfe3r
- 653
- 6
- 24
0
votes
1 answer
about Almofire Upload
I want to upload pictures to the server using Alamofire.
I have changed the selected photo from imagePicker to jpegData and used it in append of MultipartFormData.
When sending a communication, the memory of the app increases rapidly and when using…

Chocko
- 21
- 1
- 4
0
votes
0 answers
How do I Pass a parameter while uploading a file to an API with Alamofire 5
I am trying to upload a PDF selected from document picker view(Files App) to an api but I would like to pass parameters with it but I'm not able to.
Code used to upload the file:
AF.upload(myURL, to: "API Upload Link")
…
user12808336
0
votes
1 answer
Access encodingResult when uploading with Alamofire 5
I'm trying to update my app to Alamofire 5 and having difficulties due to a hack-ish way I'm using it I guess.
Anyhow, I need background uploads and Alamofire is not really designed to do this. Even so, I was using it to create a properly formatted…

Nemanja Kovacevic
- 3,510
- 2
- 30
- 45
0
votes
1 answer
How can I add a multipart form-data in an Alamofire API Router?
I have an API router like this. I have written using Alamofire 5.0:
import Alamofire
enum AlamofireRouterNetwork: URLRequestConvertible {
case register(parameters: Parameters)
case login(parameters: Parameters)
// other cases
var…

EdoBen
- 1,676
- 2
- 14
- 24
0
votes
1 answer
how to upload Image on server using Alamofire with parameters
I am uploading Image on server using Alamofire only (without using any model class). I've tried multiple link for e.g upload image to server using Alamofire in every Link I stuck on this issue " Cannot invoke 'data' with an argument list of type…

Kanika
- 1