Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Questions related to customising nuBuilder Forte with JavaScript or PHP.
kev1n
nuBuilder Team
Posts: 4566 Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 531 times
Contact:
Unread post
by kev1n » Mon Nov 18, 2019 3:03 pm
johan wrote: Kevin
I've replaced the part of the code even removed nuStopBrowserResize () but still get the same error.
If you're getting the same error
Code: Select all
ReferenceError: nuStopBrowserResize is not definedindex.php line 82 > scriptElement:79:5
that means the function is still there. Try refreshing the form.
johan
Posts: 422 Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium
Been thanked: 3 times
Unread post
by johan » Mon Nov 18, 2019 3:25 pm
Kevin
I don't get that error but still can't upload.
Maybe I have to update my nuBuilder.
kev1n
nuBuilder Team
Posts: 4566 Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 531 times
Contact:
Unread post
by kev1n » Mon Nov 18, 2019 4:18 pm
johan wrote: Kevin
I don't get that error but still can't upload.
Maybe I have to update my nuBuilder.
Are you using nuBuilder4?
johan
Posts: 422 Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium
Been thanked: 3 times
Unread post
by johan » Mon Nov 18, 2019 4:24 pm
Yes
kev1n
nuBuilder Team
Posts: 4566 Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 531 times
Contact:
Unread post
by kev1n » Mon Nov 18, 2019 4:40 pm
This script is supposed to work with all nuBuilder4 versions.
Did you revise the upload directory and allowed extensions in upload.php?
Code: Select all
$uploaddir = './documents/';
$allowed = array(
'pdf',
'docx'
);
johan
Posts: 422 Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium
Been thanked: 3 times
Unread post
by johan » Mon Nov 18, 2019 5:02 pm
Kev1N
My mistake. I forgot to put upload.php in folder upload. It was in libs.
Now I got upload succesfull but fields name, ... are empty
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4566 Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 531 times
Contact:
Unread post
by kev1n » Mon Nov 18, 2019 5:41 pm
Could you add this alert() to your code?
alert.png
Code: Select all
alert('result.file_name: ' + result.file_name + ' / ' + 'result.file_id: ' + result.file_id + '/ idRowFileName: ' + idRowFileName + '/ idRowFileId: ' + idRowFileId);
This is to see if the variables get populated correctly
You do not have the required permissions to view the files attached to this post.
johan
Posts: 422 Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium
Been thanked: 3 times
Unread post
by johan » Tue Nov 19, 2019 6:10 am
Kevin
In witch part do you want me to put this? (js - html or php)
Even though he says upload successful I don't see a file in documents
Johan
kev1n
nuBuilder Team
Posts: 4566 Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 531 times
Contact:
Unread post
by kev1n » Tue Nov 19, 2019 7:00 am
johan wrote: Kevin
In witch part do you want me to put this? (js - html or php)
Johan
This is in input_type_file.htm
alert.png
You do not have the required permissions to view the files attached to this post.