Welcome to the nuBuilder Forums!

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

upload file system error

Questions related to using nuBuilder Forte.
andrea763
Posts: 32
Joined: Tue Oct 17, 2023 7:41 am
Has thanked: 5 times

upload file system error

Unread post by andrea763 »

Hello guys, i'm pretty new i'm in nubuilder 4.5.
I'd like to upload files to the file system so i inserted an input object in the form- mode file-system.
but it gives me error when uploading.
Could it be an error about the file system itself?
Where is the folder it writes default?
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: upload file system error

Unread post by kev1n »

Hi,

What is the detail error message (hover the mouse over the "?" Symbol next to "Upload failed".)
andrea763
Posts: 32
Joined: Tue Oct 17, 2023 7:41 am
Has thanked: 5 times

Re: upload file system error

Unread post by andrea763 »

the server lamp is on a debian 10 virtual machine...
the error is an in the attached screenshot:
upload failed
o i undefined

nothing more.
You do not have the required permissions to view the files attached to this post.
andrea763
Posts: 32
Joined: Tue Oct 17, 2023 7:41 am
Has thanked: 5 times

Re: upload file system error

Unread post by andrea763 »

i found this error on the apache log...
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: upload file system error

Unread post by kev1n »

Could it be a permission problem? (E.g. no write permissin in the destination folder)
andrea763
Posts: 32
Joined: Tue Oct 17, 2023 7:41 am
Has thanked: 5 times

Re: upload file system error

Unread post by andrea763 »

it might be... the question is where are the files uploaded?
andrea763
Posts: 32
Joined: Tue Oct 17, 2023 7:41 am
Has thanked: 5 times

Re: upload file system error

Unread post by andrea763 »

i tried to se 777 to all the html folder and it works..
now the question is how can i setup the destination folder?
Janusz
nuBuilder Team
Posts: 506
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 8 times
Been thanked: 18 times

Re: upload file system error

Unread post by Janusz »

Hi, normally on debian after files update/installation it's enougth to change the owner to www-data (and do not change the mode)
eg.:
chown -R www-data:www-data /var/www/html/YourFolder
If you like nuBuilder, please leave a review on SourceForge
andrea763
Posts: 32
Joined: Tue Oct 17, 2023 7:41 am
Has thanked: 5 times

Re: upload file system error

Unread post by andrea763 »

According to the installation instructions, I already did that...
Janusz
nuBuilder Team
Posts: 506
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 8 times
Been thanked: 18 times

Re: upload file system error

Unread post by Janusz »

if you run:
> ls -al
do you get something like that in the main folder and all subfolders ?
----
-rw-rw-r-- 1 www-data www-data 92 Oct 5 14:18 .gitignore
-rw-rw-r-- 1 www-data www-data 9440 Oct 5 14:18 index.php
-rw-rw-r-- 1 www-data www-data 35149 Oct 5 14:18 LICENSE.txt
drwxrwxr-x 2 www-data www-data 4096 Oct 5 14:18 misc
-rw-rw-r-- 1 www-data www-data 618972 Oct 5 14:18 nubuilder4.sql
-rw-rw---- 1 www-data www-data 3118 Jul 6 2022 nuconfig.php
-rw-rw-r-- 1 www-data www-data 4816 Oct 5 14:18 nuconfig-sample.php
-rw-rw-r-- 1 www-data www-data 3921 Oct 5 14:18 README.md
-rw-rw-r-- 1 www-data www-data 3244 Oct 5 14:18 readme.txt
drwxrwxr-x 2 www-data www-data 4096 Oct 5 14:18 temp
-rw-rw-r-- 1 www-data www-data 10956 Oct 5 14:18 update.htm
......
If you like nuBuilder, please leave a review on SourceForge
Post Reply