bronsondunbar / php-multiple-file-uploads-component

Uploading multiple files [component]

Home Page:https://bronsondunbar.com/uploading-multiple-files-component/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple file uploads component

This example creates a folder using the users name and uploads selected files. It will also send the owner an email notification of all the uploads.

It also includes Google reCAPTCHA to ensure there is no spam content created.

Preview: http://bit.ly/2gwjTRD

Steps

In order for the example below to work you will need to use your own Google reCAPTCHA site & private keys

  1. Go to https://www.google.com/recaptcha/intro/
  2. Click on the Get reCAPTCHA button
  3. After logging in, you will need to register your site in order to get your keys.
  4. Once you have done this, you can select your site and then click on the Keys section
  5. This will give you both your site & private keys
  6. In index.html, you can search for SITE_KEY and replace it with your key
  7. In create.php, you can search for PRIVATE_KEY and replace it with your key
  8. Once this has been done, you can upload the files your site and test. Keep in mind you need to upload the files to the same site you added in Google reCAPTCHA

License

MIT License

Copyright (c) 2020 Bronson Dunbar www.bronsondunbar.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Uploading multiple files [component]

https://bronsondunbar.com/uploading-multiple-files-component/

License:MIT License


Languages

Language:PHP 39.4%Language:CSS 32.6%Language:JavaScript 26.2%Language:HTML 1.6%Language:TSQL 0.2%