Skip to main content
Participant
September 30, 2021
Question

Unable to drag and drop SVG files with base64 format in XD

  • September 30, 2021
  • 1 reply
  • 435 views

Hi, I can't drag and drop SVG files with base64 format

I can export them if they are in another format but when I try the SVG format it doesnt work.

When i try to drag them:

 

 

 

// this doesnt work (base64 svg)
const base64pic = "data:image/svg+xml;base64,..."
e.dataTransfer.setData("text/uri-list", base64pic)

// this work (base64 png)
const base64pic = "data:image/jpeg;base64,..."
e.dataTransfer.setData("text/uri-list", base64pic)

// this work (using file paths)
const icons_paths = ["C:/Users/User/AppData/Local/Packages/..", "C:/Users/User/AppData/Local/Packages/..."]
e.dataTransfer.setData("text/uri-list", icons_paths.join('\n'))

 

<Title renamed by moderator>

This topic has been closed for replies.

1 reply

HARSHIKA_VERMA
Community Manager
Community Manager
November 3, 2021

Hi

 

We are sorry for the delay in response. We would request you to please check out this article: https://helpx.adobe.com/xd/kb/import-export-issues.html#SVG-files-with-unsupported-properties and see if that helps?

 

Please let us know if you need more assistance. We would be happy to help.

 

Thanks,

Harshika