Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am new for Angular 2+ and try to retrieve the details or priorities when the user uploaded the image file from UI. properties like Title, comment, author, camera details and does it has GPS Latlong? and etc.

Please help me. Thanks

What I have tried:

JavaScript
var name = event.target.files[i].name;
var type = event.target.files[i].type;
var size = event.target.files[i].size;
var modifiedDate = event.target.files[i].lastModifiedDate;
Posted
Updated 20-Oct-18 5:07am
Comments
Afzaal Ahmad Zeeshan 20-Oct-18 10:07am    
And what is the problem with that?

You can utilize the HTML 5 File API and check the file information using those standards.
mukesh mourya 20-Oct-18 10:50am    
the problem is, unable to found other properties apart from it. like Title, comment, author, camera details and does it has GPS Latlong? and etc.

1 solution

Quote:
the problem is, unable to found other properties apart from it. like Title, comment, author, camera details and does it has GPS Latlong? and etc.

What you are looking for is called EXIF data: EXIF Data Explained | Photography Mad[^]
This may help you: GitHub - exif-js/exif-js: JavaScript library for reading EXIF image metadata[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900