jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Topic started by: mrevell@axisclinical.com on 01.04.2019 23:09:29

Title: External File Link Not Working
Post by: mrevell@axisclinical.com on 01.04.2019 23:09:29
Hello,

We are trying to utilized the External File Link funciton in jD. However, when we attempt to do this via the 'normal' process (i.e. paste the link in the External File Link location, the link is cut off and does not allow our end users to access the necessary file.

As a workaround, we have been inputting in a date field, i.e. April 1, 2019, and hyperlinking it to the content needed. However, this does not allow us to see who has downloaded the content.

Is there a way for the External File Link function to be updated to accept a larger link (or a larger string?).

Cheers,
Madden
Title: Re: External File Link Not Working
Post by: Arno on 02.04.2019 10:54:26
Hi,
you mean that the data field for the external file link is to short? This field is at the moment 255 characters long.

Maybe could you also use a link shortener like bitly?
Title: Re: External File Link Not Working
Post by: mrevell@axisclinical.com on 02.04.2019 16:13:56
We have tried that, but when using the bitly link it is performing the same - it will 'download' the file, but it is 0 bytes and is not what our end users are ultimately needing. Do you have any other suggestions?
Title: Re: External File Link Not Working
Post by: ColinM on 02.04.2019 17:50:54
Hi
With any external file you need to set the sizeyourself as jD has no way it can find the size.
Just re-tested with a file that is about 260kBytes.  The size is only used to give the user the information, it is not actually used dutring the downloading.
Colin
Title: Re: External File Link Not Working
Post by: mrevell@axisclinical.com on 02.04.2019 18:00:59
That has nothing to do with what we are needing.

We have a link that contains a signature & key pair, and as such can not be shortened. Shortening the link makes it non-functional. We need to increase the character limit in the 'External File Link' field. Is this possible?
Title: Re: External File Link Not Working
Post by: Arno on 03.04.2019 09:59:26
How long are your links?
Title: Re: External File Link Not Working
Post by: mrevell@axisclinical.com on 03.04.2019 16:43:39
The one in question is 479, so I think upping it to 500 characters would do the trick.
Title: Re: External File Link Not Working
Post by: Arno on 04.04.2019 10:39:24
500 chars?  Why is the link so long?
jDownloads exists since over ten years but never has a user posted problems with the field length before.
Have you also tried the settings on the pic below?

[gelöscht durch Administrator]
Title: Re: External File Link Not Working
Post by: mrevell@axisclinical.com on 04.04.2019 17:04:08
The link is provided by Amazon to deploy an .msi file for our customers that have purchased a cloud product from us. I can't give you a reason as to why it is so long.

As I have stated, we are unable to shorten the link because it contains a signature and a key pair that is necessary for the download. All I need to know is if that character limit can be extended or not. Please advise.
Title: Re: External File Link Not Working
Post by: Arno on 04.04.2019 21:50:56
Hi Madden,
okay I think I understand your problem.

For a fast solution your can run this query in your phpmyadmin:

ALTER TABLE `#_jdownloads_files` CHANGE `extern_file` `extern_file` VARCHAR(600) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '';

But you must replace at first the # character with the characters from your table prefix. Recommended is also to create a database backup before you run the query.

Please note that this changed only the data field size in your jD installation. So you must repeat this action when ever you want to install a fresh jD version on another server (with the same data).
Title: Re: External File Link Not Working
Post by: mrevell@axisclinical.com on 04.04.2019 23:20:58
Arno,

Thanks so much for sending this over, you've been super helpful! We will vet out this solution, and keep an eye on your release notes to see if the file link character length is ever increased as an enhancement.

Thanks again,
Madden