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

Use file contstructors instead of zipped "imaginary" files? #72

Open
varemenos opened this issue Oct 15, 2014 · 1 comment
Open

Use file contstructors instead of zipped "imaginary" files? #72

varemenos opened this issue Oct 15, 2014 · 1 comment
Assignees
Milestone

Comments

@varemenos
Copy link
Owner

https://dev.opera.com/blog/opera-25/#file-constructor

@varemenos varemenos self-assigned this Oct 15, 2014
@varemenos varemenos added this to the Alpha milestone Oct 15, 2014
@varemenos
Copy link
Owner Author

sample code:

var file = new File(['text content'], 'name.txt', {type: "text/plain"});
var fileUrl = URL.createObjectURL(file, { oneTimeOnly: true })
$("body").append("<a href=" + fileUrl + " download='filename'>download the file</a>");

@varemenos varemenos modified the milestones: Alpha, Beta Feb 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant