Page 1 of 1
Upload files / images
Posted: Fri May 19, 2023 8:29 pm
by olaf
Hello,
I need to upload files (PDF, ...) and images (jpg, png -> user photos) to a (media) folder on my server - or to the database.
How can I do this?
The "standard" file and image object do not seem to be helpful...
The uploaded files should be available for download from a form, the images should be displayed within a form.
Maybe someone has already implemented this?
THANK YOU!!!
Best,
Olaf
Re: Upload files / images
Posted: Sat May 20, 2023 7:42 am
by kev1n
Hi Olaf,
In order to upload files, you can use an object with the Type "Input" and Input Type "File".
To display the files, you have two options. First, you can use PHP to fetch the images/files from the database and exhibit them using JS/HTML. Alternatively, you can explore third-party libraries that cater to your specific requirements.
Re: Upload files / images
Posted: Sat May 20, 2023 3:53 pm
by olaf
kev1n,
thank you very much for your reply!!!
I had experimented with the object Input/File - but files must be under 300 KB, right?
I would like to upload bigger files…
But maybe I did something wrong.
Will try again this evening and post a reply…
Again, thank you very much!!!
Best,
Olaf
Re: Upload files / images
Posted: Sat May 20, 2023 3:58 pm
by kev1n
Choose Target "File System" to upload files with any size.
Re: Upload files / images
Posted: Sat May 20, 2023 5:51 pm
by olaf
kev1n, thx again…
I am quite sure I had tried thus but will give it another try this evening.
Great support, thank you!
Re: Upload files / images
Posted: Tue Apr 02, 2024 1:25 pm
by stevenmiller
I have a question regarding to this post:
So I followed these instructions and I still can't figure this out. How do I store path to the picture that i plan to store in FileSytem in the database field?
And how to load pictures from FileSystem through those paths to show on the frontend for each project id.
I feel pretty confused how to do this, even tho I tired.
Re: Upload files / images
Posted: Wed Apr 03, 2024 8:01 am
by kev1n
Re: Upload files / images
Posted: Thu Apr 04, 2024 12:27 am
by Janusz
Hi,
In my case I use th XMLHttpRequest to upload files. Here short YouTube movie to present the way I do it:
Files upload