Welcome to the nuBuilder Forums!

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

how to select edit form files on the server

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
pivasik
Posts: 3
Joined: Thu Nov 03, 2022 8:15 pm

how to select edit form files on the server

Unread post by pivasik »

Hello, specifically the question with pictures, pictures are stored on the server in libs/image, how do I select the desired pictures in the form and write their address to the database(libs/image/1.jpg). After saving, I want these pictures to be displayed in the edit form.
it would be nice to add this feature. Not only with pictures, but with other files too
Also, so that the first selected image is displayed in the view form (placed not in the database but on the server).
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: how to select edit form files on the server

Unread post by kev1n »

Do you want to select an image via a "picker", similar to opening a file (e.g. File -> Open) ?
pivasik
Posts: 3
Joined: Thu Nov 03, 2022 8:15 pm

Re: how to select edit form files on the server

Unread post by pivasik »

Yes, only from files that are stored on the server. And he might not be alone
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: how to select edit form files on the server

Unread post by kev1n »

You'll need a server-side script to retrieve the files and display them in a browse form, for example.
PHP skills and probably JavaScript skills are needed.
pivasik
Posts: 3
Joined: Thu Nov 03, 2022 8:15 pm

Re: how to select edit form files on the server

Unread post by pivasik »

I think it was very good to add to nubuilder
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: how to select edit form files on the server

Unread post by kev1n »

To upload files to the server, you can use "Uppy":

viewtopic.php?t=11677
Post Reply