Post marked as solved
Post marked as solved with 2 replies, 793 views
I want to upload a file using uploadTask(with:fromFile:) on iOS (device and simulator).
I tried to save/copy the file to the users documents directory, the temp and caches directory, but for every directory uploadTask terminates the app with 'NSInvalidArgumentException', reason: 'Cannot read file at file:*** -- file:///'
What directory/path do you have to use to get this working?
Or do you have to add something to the Info.plist or at Signing & Capabilities for the app/project?