webkitrelative path property becomes empty string when passing files to web worker in Edge

Not reproducible Issue #15137966

Details

Author
Ryan D.
Created
Dec 18, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
15.15063
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

In microsoft edge, I have a folder select field, and when I select a bunch of files, I pass them to a web worker, so it can read the files using filereader api. This works in all major browsers, except edge.

In edge, before sending it to webworker, the file has a name and path property (called name and webkitrelativePath). The path is webkitrelativepath, however right after I send it to the webworker, and I check the file properties, the name is there, but the path becomes an empty string.

Does anyone know what’s going on?

I’m also on

Microsoft Edge 40.15063.674.0
Microsoft EdgeHTML 15.15063
html

<input type="file" name="userfile" webkitdirectory directory>
main.js

var files = $("#upload_form input[type=’file’]")[0].files;

var myWorker = new Worker(‘scanner/js/worker.js’);

myWorker.postMessage(files);
worker.js

// listener for when this gets invoked
onmessage = function(e) {
var files = e.data;
};
Thanks

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

    • Hello,

      Thank you for providing this information about the issue. We are unable to reproduce this problem in Edge. Please test this behavior in our fall preview build 16299 or insider build 17046.

      Best Wishes,
      The MS Edge Team

    • Microsoft Edge Team

      Changed Status to “Not reproducible”

    You need to sign in to your Microsoft account to add a comment.

    Sign in