Upload error using "Subform: Uploading a File on button click"
Posted: Mon Nov 13, 2023 3:15 pm
Hello everyone,
having the need to implement the upload of multiple files connected to the same id of the main form, I decided to implement what is described in the NUBuilder 4.5 code library using a subform. The only difference is that I changed the destination directory where to place the files and therefore I consequently modified both the upload.php file and the others two code files with the new directory which is located in the main directory and therefore /home/upload/documents/
There is no way to make it work, i get the "upload failed" error and the server reports in the log "Warning: Undefined array key 11 in /home/nubuilder/core/nuform.php on line 999"
I set all the directory permissions to 0775, i double checked all db tables but no results therefore I decided to clone the example shown in the code library but the error always remains the same.
It's definitely one of those silly mistakes that you have just in front your eyes and you don't see it, which is why I'm asking your help.
Thanks for any suggestions
having the need to implement the upload of multiple files connected to the same id of the main form, I decided to implement what is described in the NUBuilder 4.5 code library using a subform. The only difference is that I changed the destination directory where to place the files and therefore I consequently modified both the upload.php file and the others two code files with the new directory which is located in the main directory and therefore /home/upload/documents/
There is no way to make it work, i get the "upload failed" error and the server reports in the log "Warning: Undefined array key 11 in /home/nubuilder/core/nuform.php on line 999"
I set all the directory permissions to 0775, i double checked all db tables but no results therefore I decided to clone the example shown in the code library but the error always remains the same.
It's definitely one of those silly mistakes that you have just in front your eyes and you don't see it, which is why I'm asking your help.
Thanks for any suggestions