PHP File Uploads The Complete Guide to Uploading Files Using PHP

HomeOther Content, TechPHP File Uploads The Complete Guide to Uploading Files Using PHP
PHP File Uploads The Complete Guide to Uploading Files Using PHP
PHP File Uploads The Complete Guide to Uploading Files Using PHP
Please consider supporting my channel:
https://ko-fi.com/davehollingworth

Learn how to upload a file using PHP.

Full PHP course:
https://davehollingworth.net/phpy

In this video you’ll learn how to:
• create a form in HTML to select files for upload
• configure PHP for file uploads
• save the file locally to the web server
• restrict files by size and type
• rename uploaded files for security
• avoid overwriting existing files

Code shown in the video:
https://gist.github.com/daveh/6934c8d5cd7cd4b0afa1f15ae4799484

CSS:
https://watercss.kognise.dev/

PHP Documentation shown:
https://www.php.net/manual/en/reserved.variables.files.php
https://www.php.net/manual/en/ini.core.php#ini.file-uploads
https://www.php.net/manual/en/features.file-upload.errors.php
https://www.php.net/manual/en/fileinfo.installation.php
https://www.php.net/manual/en/function.move-uploaded-file.php

00:00 Introduction
00:31 HTML form
01:30 PHP script
02:27 _FILES
04:04 php.ini enable file uploads
05:02 Upload errors
06:50 Restricting size
08:44 php.ini size settings
10:30 Restricting by type
12:52 The temporary file
13:40 Move the file
16:20 Filename security
17:42 Unique filenames
19:03 Summary

#PHP #files #HTML #upload

Take the opportunity to connect and share this video with your friends and family if you find it useful.

No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *