Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to get the captured date of the uploaded image and not the uploaded date in iOS #287

Open
aliabbasbhojani1 opened this issue Aug 4, 2023 · 0 comments

Comments

@aliabbasbhojani1
Copy link

aliabbasbhojani1 commented Aug 4, 2023

I am working in iOS and after selecting the images, I get the temp path of all the selected images in success callback method. Then I call window.resolveLocalFileSystemURL() on the selected paths to get the FileEntry object and then, I call the file() of FileEntry to get the File object. The File object has a property lastModifiedDate which returns the current date. I need the captured date of the image.
For example, if the image was captured two years back, I want that date not the current date.

function onSuccess(filePathArray)
{
    window.resolveLocalFileSystemURL(filePathArray[0], function(fileEntry){
        fileEntry.file(function(file){
            console.log(file.lastModifiedDate);
        });
    });
}
@aliabbasbhojani1 aliabbasbhojani1 changed the title I want to get the captured date of the uploaded image and not the uploaded date I want to get the captured date of the uploaded image and not the uploaded date in iOS Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant