Add fileTypeService
This commit is contained in:
parent
96b4997492
commit
4f8d476a2b
5 changed files with 36 additions and 17 deletions
|
@ -19,7 +19,8 @@ const uploadMedia = ({ store, formData }) => {
|
|||
return {
|
||||
id: xml.getElementsByTagName('media_id')[0].textContent,
|
||||
url: xml.getElementsByTagName('media_url')[0].textContent,
|
||||
image: xml.getElementsByTagName('atom:link')[0].getAttribute('href')
|
||||
image: xml.getElementsByTagName('atom:link')[0].getAttribute('href'),
|
||||
mimetype: xml.getElementsByTagName('atom:link')[0].getAttribute('type')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue