Duration 19:28

PHP File Uploads | The Complete Guide to Uploading Files Using PHP

23 461 watched
0
495
Published 9 Oct 2022

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.phphttps://www.php.net/manual/en/ini.core.php#ini.file-uploadshttps://www.php.net/manual/en/features.file-upload.errors.phphttps://www.php.net/manual/en/fileinfo.installation.phphttps://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

Category

Show more

Comments - 57