The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Add file upload option to the form, Form
Matt A
post 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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Nov 16 2022, 08:07 AM
Post #3


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



QUOTE(Matt A @ Nov 15 2022, 10:55 PM) *

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.
User is online!PM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
nootkan
post 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/
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th April 2024 - 09:56 AM