3

Can we integrate the FileAccess API of HTML with normal download of Files using javascript.

We typically download a file by the below way:

var fileUrl='../File.doc';    
window.open(fileUrl,'Downloading');  

Now I believe that the file would be downloaded to tempFolder and the folder designated by us for download.

But is it possible for us to download the file to a sandboxed location as mentioned in WWC draft on HTML 5 File API.

If this is possible, I believe "need for a way to delete downloaded files" of my previous question would be solved.

1 Answer 1

2

There's a new download attribute you can add to links that tells the browser to download the resource rather than navigating to it. That downloads the file to whatever "Downloads" folder the browser uses by default. You cannot programmatically delete files that are downloaded. That would be a security risk.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.