Problems with image URL when uploading with file transfer plugin


I am having troubles with uploading a file to my server with the file transfer plugin. Sometimes it works and sometimes it does not. I think that I have tracked it down to a problem with the image url. I used my own File Transfer example which you can find here.

This one works, which was an image send through whatsapp and selected through the multi image picker.


This one does not work, was made by the camera and selected later by the [multi image picker](


This one does not work, was made by the camera.


I am getting a `FileTransferError.FILE_NOT_FOUND_ERR` error with the images that are not working. Anyone got a suggestion why some pictures are working and some aren't?

I’ve managed to solve the problem. The problem was not at the side of the app but my API. I now know it is not IONIC related but for anyone interested this what helped me on my way.

The problem was that I was uploading large files but the server did not accept them. The error I was getting is still very unhelpful though. By setting the following in the web.config of my API

    <httpRuntime maxRequestLength="30000000" />

        <requestLimits maxAllowedContentLength="30000000" />

I allowed larger files to be uploaded.

Could you please share your server side code?

I’m using Node.js and not able to figure out how to receive the parameters/data sent by the device.