Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
upload file to server
-
- nuBuilder Team
- Posts: 4428
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 475 times
- Contact:
-
- nuBuilder Team
- Posts: 4428
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 475 times
- Contact:
Re: upload file to server
The article can be read here:
https://github.com/smalos/nubuilder-cod ... le_subform
Sample database:
https://github.com/smalos/nubuilder-cod ... 20database
https://github.com/smalos/nubuilder-cod ... le_subform
Sample database:
https://github.com/smalos/nubuilder-cod ... 20database
Re: upload file to server
Kevin
Thanks for your help. I've tried to set this up in my Nubuilder
When I upload a file I get the error Upload failed.
Only thing I've modified is this part of form_custom_code.js so it points to my table.
Any idea what I missed?
Thanks for your help. I've tried to set this up in my Nubuilder
When I upload a file I get the error Upload failed.
Only thing I've modified is this part of form_custom_code.js so it points to my table.
Code: Select all
var uploadFolder = 'libs/upload/documents/';
var idFileName = 'files_file_name';
var idFileId = 'files_file_id';
var idSubForm = 'sample_files';
-
- nuBuilder Team
- Posts: 4428
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 475 times
- Contact:
Re: upload file to server
Do you see any error messages in the developer console (F12)? or your PHP log file?
-
- nuBuilder Team
- Posts: 4428
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 475 times
- Contact:
Re: upload file to server
There was a mistake:
Replace this
With
in form_custom_code.js
Replace this
Code: Select all
createDownloadLink(idSubForm + nuPad3(i) + fileNameId, uploadFolder, fileId, fileName);
Code: Select all
createDownloadLink(idSubForm + nuPad3(i) + idFileName, uploadFolder, fileId, fileName);
Re: upload file to server
This error
Code: Select all
ReferenceError: nuStopBrowserResize is not definedindex.php line 82 > scriptElement:79:5
<anoniem> https://registratie.cawdekempen.be/preventie/index.php line 82 > scriptElement:79
jQuery 3
nuAddJavascript https://registratie.cawdekempen.be/preventie/nuform.js?ts=20180509002054:2994
nuBuildForm https://registratie.cawdekempen.be/preventie/nuform.js?ts=20180509002054:122
successCallback https://registratie.cawdekempen.be/preventie/nuajax.js?ts=20180509002054:109
success https://registratie.cawdekempen.be/preventie/nuajax.js?ts=20180509002054:15
jQuery 4
fire
fireWith
done
callback
-
- nuBuilder Team
- Posts: 4428
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 475 times
- Contact:
Re: upload file to server
Just remove or comment out nuStopBrowserResize (); (seems like you are not using the latest nuBuilder - this function has been added recently)
Re: upload file to server
Kevin
I've replaced the part of the code even removed nuStopBrowserResize () but still get the same error.
I've replaced the part of the code even removed nuStopBrowserResize () but still get the same error.