Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add download attribute for link tag to transfer downloaded filename #554

Merged
merged 1 commit into from
Apr 13, 2016

Conversation

tvolf
Copy link
Contributor

@tvolf tvolf commented Jan 20, 2016

This little update allows sending in link tag encoded file with ability to set this filename in new 'download' attribute for link tag.
We've tried to use this modified version locally for our job and made decision that it will be useful for somebody else.
To describe new ability it needs to add 'download' attribute for link like:

{
  "title": "Link to downloaded file with data in it",
  "type": "string",
  "links": [
    {
      "rel": "anchor name",
      "href": "...here is base64 encoded data string with MIME...",
      "download": "filename for download"
    }
  ]
}

Best regards.
Stan.

@jdorn jdorn merged commit f3df3f1 into jdorn:master Apr 13, 2016
jdorn added a commit that referenced this pull request Apr 13, 2016
Closes #554

Conflicts:
	src/editor.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants