Design Studio - XLSM files (Excel w/ macros) | Community
Skip to main content
Jean-Pascal_Mer
Level 4
March 10, 2017
Solved

Design Studio - XLSM files (Excel w/ macros)

  • March 10, 2017
  • 2 replies
  • 9085 views

Hey guys,

We have a content repository for our Partners. All the documents are hosted in the Design Studio. We recently added an Excel file with macros (.xlsm).

When going to the repository page and clicking the download link, no problem, file downloads ans open.

But if we give direct link and customer copy it in his browser, he gets the attached screenshot.

Anyone has any idea why it would do that?

Cheers

JP

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Hello Sanford,

This is the document URL: http://info.sherweb.com/rs/288-VQZ-957/images/PerformanceCloudCostEstimator_2017.xlsm


It's being sent as Content-Type: text/plain. That's your problem. text/plain is expected to be openable in the browser, so the browser's doing the right thing with what it's got.

2 replies

Jim_Thao7
Level 8
March 10, 2017

I'm not exactly sure about the root cause of this, but I do know that this happens when you target a new tab/window on a click link.  I usually just take away the target="_blank" and let the link open in the same tab for the download link to work properly. 

Jean-Pascal_Mer
Level 4
March 10, 2017

Hi Jim,

In this case, it's not really opening a link through a button or a click, but pasting the URL (or clicking in an email) that opens up the URL. So the target="_blank" wouldn't be used.

It's really a weird behavior.

Jim_Thao7
Level 8
March 10, 2017

Ahh, gotcha.  Try to build your link like this to force a download on click <a href="www.url.com" download="">click me</a> and see if that helps.

March 15, 2017

Hi Jean-Pascal,

So what did you do to solve for the situation?