Picture saved in cordova.file.dataDirectory is rotated 90deg

If I get a picture with cordova plugin and then I move the photo in cordova.file.dataDirectory using:

File.moveFile(path, currentName, cordova.file.dataDirectory, newFileName).then(function(success:any){
… mypic = success.nativeURL;
});

I see a rotated picture of 90 deg in img tag on my html view. How is possible? Why it is rotated?
If I don’t move the picture and if I save the path of the original file. the orientation is correct.
Anyone faced similar problem?

I SOLVED:

I Solved, passing “correctOrientation: true” to the camera plugin options object.