W
W
Wasya UK2017-05-13 11:18:10
JavaScript
Wasya UK, 2017-05-13 11:18:10

How to get all properties of an audio file?

Using npm multer, when uploading audio to the server, I get a file with the following content:

{ fieldname: 'uploadFile',
  originalname: '114. some song.mp3',
  encoding: '7bit',
  mimetype: 'audio/mp3',
  destination: './public/uploads/',
  filename: '1494662803549-114. some song.mp3',
  path: 'public\\uploads\\1494662803549-114. some song.mp3',
  size: 9083992 }

Is there a way to access the audio icon and other properties? For example, as in the new VK interface.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artyom Egorov, 2017-05-13
@dmc1989

Tags and icons in an mp3 file are stored in an ID3 tag. https://github.com/aadsm/jsmediatags will most likely suit you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question