Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

File upload download and PDF reports not working after upgrade Topic is solved

Questions related to using nuBuilder Forte.
Post Reply
stevenmiller
Posts: 25
Joined: Mon Jul 06, 2020 4:23 pm
Has thanked: 3 times

File upload download and PDF reports not working after upgrade

Unread post by stevenmiller »

Hello again,

after upgrading to
DB: V.4.7-2025.05.25.00
Files: V.4.7-2025.05.26.06

the file upload described here is not working correctly anymore

https://github.com/nuBuilder/nuBuilder- ... le_subform

The files are stored, but the file name and ids not, so I can't click them.
Also with old existing uploads I can't click on them, to download them.

In addition to that all PDF reports are not generated anymore :-(

Could anyone give me a hint?

Thanks, Steven
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: File upload download and PDF reports not working after upgrade

Unread post by kev1n »

Hi Steven,

To help resolve the issue with PDF reports not generating, we’ll need more details, such as:

Are there any error messages shown (either in the browser console or server logs)?
If you encounter an issue, be sure to check the developer console for errors by clicking the `F12` key on most browsers.
Also open nuDebug results (CTRL+SHIFT+D) and check your (Apache) server logs.
Do the reports use a procedure, a SQL query?

Do you pass Hash Cookies to the reports etc..
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: File upload download and PDF reports not working after upgrade

Unread post by kev1n »

As for the file upload:

Replace in Custom Code:

Code: Select all

function uploadFile(event) {
    var td = $(event.target);
    var t = td.attr('data-nu-prefix');

    idRowFileName = t + idFileName;
    idRowFileId = t + idFileId;

    $("#fileToUpload").click();

}
With:

Code: Select all

function uploadFile(event) {
    var td = $(event.target).parent(); // <--- changed this line
    var t = td.attr('data-nu-prefix');

    idRowFileName = t + idFileName;
    idRowFileId = t + idFileId;

    $("#fileToUpload").click();

}
Then, change the Access of the object "Filename" (ID files_file_name) to "Editable/Visible".
Also, add an onkeydown event for "Filename" with JS event.preventDefault();
stevenmiller
Posts: 25
Joined: Mon Jul 06, 2020 4:23 pm
Has thanked: 3 times

Re: File upload download and PDF reports not working after upgrade

Unread post by stevenmiller »

All reports are not working, even when they are only filled by #object# values as well as SQL statements
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: File upload download and PDF reports not working after upgrade

Unread post by kev1n »

To help you properly, we’ll really need a bit more information—just saying "not working" makes it really difficult to pinpoint the issue.

I’ve just tested various reports using the latest nuBuilder version and Fast Report, and they all display correctly on my end. The issue could be related to your PHP version, MySQL version, or other dependencies....

Could you please share more details about your environment and any error messages you’re seeing? That would really help us troubleshoot effectively.

If you encounter an issue, be sure to check the developer console for errors by clicking the `F12` key on most browsers.
Also open nuDebug results (CTRL+SHIFT+D) and check your (Apache) server logs.
stevenmiller
Posts: 25
Joined: Mon Jul 06, 2020 4:23 pm
Has thanked: 3 times

Re: File upload download and PDF reports not working after upgrade

Unread post by stevenmiller »

The upload and download is now working! Thanks, Kevin!
stevenmiller
Posts: 25
Joined: Mon Jul 06, 2020 4:23 pm
Has thanked: 3 times

Re: File upload download and PDF reports not working after upgrade

Unread post by stevenmiller »

Database: (Ubuntu) 8.0.42-0ubuntu0.20.04.1
PHP: 8.1.2-1ubuntu2.21
nuBuilder DB: V.4.7-2025.05.25.00
nuBuilder Files: V.4.7-2025.05.25.03

When I click a pdf report

http Error 500 appears
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: File upload download and PDF reports not working after upgrade

Unread post by kev1n »

Did you review the Apache server logs to see if they provide more information about the error?
stevenmiller
Posts: 25
Joined: Mon Jul 06, 2020 4:23 pm
Has thanked: 3 times

Re: File upload download and PDF reports not working after upgrade

Unread post by stevenmiller »

Kevin, I found the issue, I had to install php8.1-curl
Post Reply