Page 1 of 1

how to select edit form files on the server

Posted: Fri Feb 10, 2023 2:35 pm
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).

Re: how to select edit form files on the server

Posted: Fri Feb 10, 2023 2:55 pm
by kev1n
Do you want to select an image via a "picker", similar to opening a file (e.g. File -> Open) ?

Re: how to select edit form files on the server

Posted: Fri Feb 10, 2023 3:00 pm
by pivasik
Yes, only from files that are stored on the server. And he might not be alone

Re: how to select edit form files on the server

Posted: Fri Feb 10, 2023 3:14 pm
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.

Re: how to select edit form files on the server

Posted: Fri Feb 10, 2023 3:20 pm
by pivasik
I think it was very good to add to nubuilder

Re: how to select edit form files on the server

Posted: Mon Feb 13, 2023 5:27 pm
by kev1n
To upload files to the server, you can use "Uppy":

viewtopic.php?t=11677