DSPACE7 - a public link for PDF download

143 views
Skip to first unread message

Jan Broulím

unread,
Mar 8, 2023, 2:55:06 AM3/8/23
to DSpace Technical Support
Hi,
I would like to ask whether it is possible to generate a public link for pdf download - e.g. based on handle number.
Thank you
Jan

Jan Broulím

unread,
Mar 16, 2023, 6:36:22 AM3/16/23
to DSpace Technical Support
Any idea? We need a software solution to generate public links for PDF downloads using only a given handle number.
Thanks

Tim Donohue

unread,
Mar 20, 2023, 11:29:44 AM3/20/23
to DSpace Technical Support
Hi Jan,

DSpace 7 doesn't provide an option to have a Bitstream (File) download link based on an Item's assigned Handle.  Instead, download links *are* persistent and public, but are based on the UUID of the Bitstream/file like this:
https://[dspace.url]/bitstreams/[uuid-of-bitstream]/download

That said, DSpace 7 does auto-redirect all older style 6.x URLs to the new location.  So, for example, in the DSpace 6.x XMLUI, file downloads used this URL structure:
https://[dspace.url]/bitstream/handle/[prefix]/[suffix]/[filename]

Those older URLs will redirect automatically to the new URL style (shown above), in case that's helpful.

Tim

Asanali Msangi

unread,
Mar 20, 2023, 11:38:46 AM3/20/23
to Tim Donohue, DSpace Technical Support
Dear all,I would like to ask for help..
I have dspace 7.5 installed successfully in Ubuntu 22.04 LTS   but how do I make it accessible in the local area network (192.168.xx.x )instead of localhost? kindly advise in a clear way how to do that... 
Thank in advance


i

Virus-free.www.avg.com

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/1e2b39c5-dcd6-45da-9583-65ff5462143cn%40googlegroups.com.


--
MR.ASANALI MOSES MSANGI

"For I am already being poured out as a drink offering, and the time of my departure is at hand. I have fought the good fight, I have finished the race, I have kept the faith. Finally, there is laid up for me the crown of righteousness, which the Lord, the righteous Judge, will give to me on that Day, and not to me only but also to all who have loved His appearing." (2 Tim. 4:6-8)

Asanali Msangi

unread,
Mar 21, 2023, 3:08:48 AM3/21/23
to DSpace Technical Support
Dear DSpace Techinical Team.

tant...@umn.edu

unread,
Mar 21, 2023, 2:54:10 PM3/21/23
to DSpace Technical Support
That's helpful, and the new style is actually more predictable, however, in my instance when I click on a bitstream link I am redirected to a new url that looks like a REST endpoint, for example


It would be preferable to see the url as it appears to the client, for example


Any thoughts?

Tim Donohue

unread,
Mar 21, 2023, 3:17:11 PM3/21/23
to DSpace Technical Support
Hi Bill,

The DSpace 7 UI *must* redirect to the backend in order to perform the download. Otherwise, you'd need to "stream" the file to the UI first, then send it to the user.

So, the behavior you are seeing is correct... 

In the UI, the link will always appear like this: 
https://[dspace.ui.url]/bitstreams/[uuid-of-bitstream]/download

However, when a user clicks that link, they are redirected (by the UI) to download the file via the backend:
https://[dspace.server.url]/api/core/bitstreams/[uuid-of-bitstream]/content

Notice that the *first* URL will always be based on the "dspace.ui.url" setting (i.e. the URL of the UI), which is required for SEO/indexing purposes, etc.  However, it necessarily will redirect/send you to the "dspace.server.url" (i.e. the URL of the REST API) in order to download the file.... this is necessary for performance purposes, so the backend can "stream" the file directly to the user's browser.

Hopefully that clarifies things further.  But, let us know if it brings up more questions.

Tim

Asanali Msangi

unread,
Mar 29, 2023, 3:26:27 AM3/29/23
to DSpace Technical Support

Dear George Yusto,
Thank you for your commitment to give me support for our dspace here at the University ... Everything is going well... thank you very much

The issue was not working is attached below

Dear DSpace Techinical Team.
I would like to ask for help..
I have dspace 7.5 installed successfully in Ubuntu 22.04 LTS   but how do I make it accessible in the local area network (192.168.xx.x )instead of localhost? kindly advise in a clear way how to do that... 
Thank in advance

George Yusto

unread,
Mar 29, 2023, 3:34:45 AM3/29/23
to Asanali Msangi, DSpace Technical Support
Reply all
Reply to author
Forward
0 new messages