掲示板 掲示板

戻る

How to generate a user friendly asset name for downloads

トグル
Hello SB Team!

I have a pdf job-aid file that I am linking to in a SB lesson so that users can download a 'cheat-sheet' when they get to that section of the course.

The issue is that when the file generates, and a user goes to 'download' the PDF from their browser, a non user-friendly asset name is used instead of the actual file name.  

Is there a way to change this?  I'd prefer to create a user experience where the user downloads a file and it has the title I specify rather than making them have to catch that step and rename the file.

Any help is appreciated. 

Thanks!

L

0 (0 投票)

RE: How to generate a user friendly asset name for downloads
答え
22/02/22 22:53 Leif Cederblomへのコメント
Hi Leif,
I'll check with the dev team to see if this is something they can update - it's tricky because the asset file might have special characters, or not be unique when added to SmartBuilder.

A quick workaround would be to point to the asset you want. Either hosted elsewhere (point directly to a URL - see image1), or toss the file into the directory after publishing (see image2). Just make sure your filename is websafe.

If option 2 is better, and you are publishing frequently, or need this file as part of many packages, there's a way to bundle things with ALL lessons you publish, but that method might be overkill for this situation.

Hope that helps! Let us know how it goes!

- Nav
0 (0 投票)

RE: How to generate a user friendly asset name for downloads
答え
22/02/23 5:46 Navdeep Dhillonへのコメント
Hi Nav,

Both these solutions sound like they will work for my needs since I am launching it as a web-page, and not from an LMS.  

In thinking about when I would launch the course from an LMS, the second option you describe would be somewhat prone to human error as I might forget to do that post-production step (especially if I were updating a prior course I hadn't worked on in a while.)  Thus, the enhancement might be worth considering... you could always just append a number to the filename like a microsoft download (eg. "Some_file_name(1).pdf".)

Again, your work arounds will suffice for me for now, so no worries.  If no-one else has had that need or issue, then the enhancement may not be worth the effort.

Thanks for the quick answer today!

Cheers,

Leif
0 (0 投票)

RE: How to generate a user friendly asset name for downloads
答え
24/06/17 13:58 Navdeep Dhillonへのコメント
Hi,

Has there been any action on this?

FYI, native HTML has the ability to set the filename on the client-side. Is there some way you could add a property to the relevant logic block in SmartBuilder which allows us to set a filename regardless of the name it is given when complied to a SCORM package?

The syntax is <a download="filename">

More info: https://www.w3schools.com/TAGS/att_a_download.asp

Thanks in advance.
0 (0 投票)

RE: How to generate a user friendly asset name for downloads
答え
24/06/17 18:20 Leon Rへのコメント
Hi Leon,
I was not aware of this attribute. I've added this to our enhancement backlog. We'll have to see exactly how it's implemented since there are a bunch of different ways the asset and hyperlinks are used (and they mostly default to opening in a new window).
0 (0 投票)