Get File meta data

From @jonmyates on Tue Sep 06 2016 13:38:33 GMT+0000 (UTC)

Hello,

Having 'add’ed a file (an image of type jpg) using the add command, I’m struggling to find the command to get the meta data about it (name, IPFS location, etc).

When I perform either a GET or a CAT I just get the text version of the file back.

Ideally, having listed my files I’d like to get some data in them.

I’m using and API client (POSTMAN) to send the requests.

Can anyone please advise?


Copied from original issue: https://github.com/ipfs/faq/issues/174

From @kevinsimper on Tue Sep 06 2016 15:06:38 GMT+0000 (UTC)

I asked a similar question, you can see it here :slight_smile: https://github.com/ipfs/faq/issues/163

From @jonmyates on Tue Sep 06 2016 15:41:08 GMT+0000 (UTC)

Thanks Kevin.

So to get the meta-data on a file, the containing folder needs to be added?

Cheers.

Jon

From @kevinsimper on Tue Sep 06 2016 15:53:50 GMT+0000 (UTC)

@jonmyates Yes, you are right! :+1: