Opening File Explorer From Layer

Is it possible for a Cloud-based kinetic webpage to open up a users local directory? I don’t see a widget that will do this, and attempting to do it through code with a function call is giving me internal server errors. Without digging into it too much farther is this foolish to even try? I could easily see this as something that just isn’t allowed in Epicor, but I don’t know where to begin figuring that out besides just asking you kind folks.

I think the problem is actually more on the browser side of things in terms of restrictions, like how the browser cannot launch Excel directly, it has to download the file, the browser cannot open programs on a user’s computer.

ryan reynolds hd GIF

3 Likes

It was requested. New company being brought in with existing server folders with years of files. I’m guessing the correct answer is to upload everything to the Cloud server and then pull that stuff down instead of accessing local files?

Sorta. In M365, I download and open Excel files from the browser all day. There are a few things that enable this:

Content-Type used by the server:

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Content-Disposition Header:

Content-Disposition: attachment; filename="example.xlsx"

And finally, an HTTP protocol (I believe that M365 uses this):

ms-excel:ofe|u|https://example.com/path/to/your/file.xlsx

but your local machine has to enable this, which is usually done when you install Office locally.

I understand that, but you haven’t explained what they are wanting to do.

Lay out the whole idea.

New company is being brought in so we have to get them up and running in Epicor. They have a legacy server full of files that are linked to Parts. Going forward we’re going to have these files uploaded into Epicor like attachments. For the legacy files, it was asked if it could be done to have a quick ‘link’ to a file path in their network that has the associated file for that Part. In my mind the endpoint would be just opening the file location in File Explorer, but not doing anything else.

Really I just wanted quickly to know if this was ridiculous or reasonable, as this isn’t an area I have a ton of experience in.

1 Like