Upload Transaction Receipts With Proper File Validation - Build Expense Tracker App With PHP 8
HTML-код
- Опубликовано: 13 июн 2024
- In this video we implement the receipt file upload functionality. We use Flysystem package to handle file uploads to different storage systems & also implement the proper file validation to add layer of security to our application.
SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
👍 Smash the like button
🤝 Subscribe to the channel & turn the notifications on
💬 Post comments, any feedback is greatly appreciated
⭐ Become a Patreon: / programwithgio
THANK YOU!
🛠️ TOOLS & SERVICES I USE
Digital Ocean Hosting - Get 100$ credit - m.do.co/c/38b935ad74e5
Domains on Namecheap - namecheap.pxf.io/rnRjdQ
Envato Elements - 1.envato.market/c/2937311/298...
LESSON P.20
Starting Source Code - github.com/ggelashvili/expenn...
Ending Source Code - github.com/ggelashvili/expenn...
Course Outline - github.com/ggelashvili/learnp...
Course Playlist - • Learn PHP The Right Wa...
RESOURCES
Flysystem - flysystem.thephpleague.com/docs
OWASP Cheatsheet - cheatsheetseries.owasp.org/ch...
TABLE OF CONTENTS
00:00 - Intro
00:30 - Install & Use Flysystem
05:03 - UI Changes Overview
08:35 - Upload File
10:16 - File Validation
27:29 - Mime Type Validation Using Flysystem
30:25 - Create Receipt Entity Record
33:10 - Generate & Store Unique Filenames
40:04 - Outro
** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.