Add file upload option to the form, Form |
Add file upload option to the form, Form |
Matt A |
Nov 15 2022, 04:55 PM
Post
#1
|
Group: Members Posts: 1 Joined: 15-November 22 Member No.: 28,638 |
Hi, I am looking for an option to be able to have a form with the file upload option. My problem is how I can set up the storage to save the files. Any ideas?
|
pandy |
Nov 15 2022, 09:51 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
You need a server side script to handle the form and the upload. You can't do things like that with HTML. It just provides the interface.
|
Christian J |
Nov 16 2022, 08:07 AM
Post
#3
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
My problem is how I can set up the storage to save the files. Any ideas? In PHP I believe uploaded files are first stored in the server's default temporary directory, then you can move them to another more permanent location. See also https://www.php.net/manual/en/features.file-upload.php and the pages it links to. |
nootkan |
Dec 6 2022, 01:05 PM
Post
#4
|
Member Group: Members Posts: 34 Joined: 16-July 21 Member No.: 28,016 |
Hi here are a couple of links to help you get started. Some of the examples are tied into some "in the cloud" services for storage.
Remember to do some research into the security end of things when using file uploads. https://colorlib.com/wp/bootstrap-file-uploads/ https://freshdesignweb.com/jquery-html5-file-upload/ |
Lo-Fi Version | Time is now: 25th April 2024 - 09:56 AM |