Skip to content

iOS - Error uploading image #31

@JasonSa1993

Description

@JasonSa1993

Object reference not set to an instance of an object
at Plugin.FileUploader.FileUploadManager.DidCompleteWithError (Foundation.NSUrlSession session, Foundation.NSUrlSessionTask task, Foundation.NSError error) [0x0016a] in <70253a076b8d47719b69a44e035ed031>:0
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.10.0.17/src/Xamarin.iOS/UIKit/UIApplication.cs:86

at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.10.0.17/src/Xamarin.iOS/UIKit/UIApplication.cs:65

at Ecopropiedad.iOS.Application.Main (System.String[] args) [0x00001] in /Users/jasonsa/Desktop/Proyectos_Xamarin/Ecopropiedad_iOS/Ecopropiedad/Ecopropiedad.iOS/Main.cs:17

Version Number of Plugin: 1.4.0
Device Tested On: iPhone 8 Plus
Simulator Tested On: -
Version of VS: Visual Studio for Mac COMMUNITY Versión 8.4.4 (build 91)
Version of Xamarin: 4.4.0.991640
Versions of other things you are using:

Steps to reproduce the Behavior

You choose an image either taken with the camera or the gallery, it is sent to the await function CrossFileUploader.Current.UploadFileAsync with its respective url of and fails taking me immediately to the Main.cs and does not fall into any error method or success of the plugin

Expected Behavior

That the image is sent and follow the Current_FileUploadCompleted function

Actual Behavior

It is broken by sending the error in the Main.cs Object reference not set to an instance of an object

Code snippet

Screenshotst

fileUploader_error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions