CodeIgniter 4 from Scratch - #12 - File Validation & File Upload

preview_player
Показать описание
In this video of CodeIgniter 4 From Scratch Series we will see how to Validate a File field and then How to Upload the file once the validation is successful. We will take a look at single file upload and on multiple files uploaded at once.

The goal of this video is to show you how to:
- Perform File Validation
- Upload a File to a specific location
- Rename files on upload
- Control types of files

CodeIgniter 4 From Scratch Series, the series that are intended to help you get started with CodeIgniter 4 even if you have never worked with PHP frameworks before.

This course will not only help you get started with CodeIgniter but also will help you understand the way PHP Frameworks work.

For more information about Codeigniter 4 Validation Library and Working with uploaded files read the official docs
Рекомендации по теме
Комментарии
Автор

I really appreciate that you leave in the "mistakes" and then go and correct them. Not only is it a useful tool for teaching, it's also encouraging that even seasoned programmers make mistakes, and it's no big deal, you just go track it down, fix it, and move on.

ryanleber
Автор

Simple and clear. give a lot to real issue and fixed. thanks a lot.

nanohetube
Автор

Great video! Great channel! please don't stop uploading, these tutorials are a godsend for anyone looking to build anything in Codeigniter 4. I do have a question, how can you get the "getRandomName()" parameter and file path to insert into your database after file upload?

silviustro
Автор

Amazing video! Thanks Alex, great explanation

EmersonCabrera
Автор

Thank you Alex! Your video really helped me!

АлексейГрунин-бе
Автор

Alex, your "CodeIgniter 4 From Scratch Series" is great!
But the playlist contains two identical parts with the same number # 12. I'm sorry, if I didn't understand your idea.

ValeraG
Автор

Hey! How can we update the image and delete it from the directory when perfoming delete operation

mansoorahmad
Автор

Great tutorial on your channel. Can you make the next series on Dynamic add row validation

rekden
Автор

Hi Alex. I previously asked for a video on creating modules but, having done a little more research, perhaps an in-depth explanation of namespaces would be better. That seems to be at the core of creating modules.

StevenMcGregor
Автор

Bro, my files are taking lot of time to upload, it takes around 5 mins. What should I do to enhance the speed

AjayKumar-qutl
Автор

Show... Professor per favor faça uma video de upload com resize of image. obrigado...

Mrscandeia
Автор

Hi sir! I was following all your tutorials and it's really helpful! But at this moment I have encountered an error when using the uploaded rule. It states: TypeError: date() expects parameter 2 to be int, bool given when using single upload file.

gregninobla
Автор

Congratulations on all your videos, you are helping me a lot! I don't understand why when I submit the form it also inserts an empty index.html in the new folder! What could I have done wrong? Thanks

MirkoRuggirello
Автор

getFile dose not work in my application. Get this error Undefined method 'getFile'.. Can you help.?

kavitapawar
Автор

How to upload pdf and word files using CodeIgniter 4? Thank you

reynaldiarytumanan
Автор

How do i retain my File input value when other input are fail?

JanarthanamAanandan
Автор

Bro, without making image to be mandatory - how need to do - but need to check the extension if image is trying to upload. Plz give your suggestion

nochannel
Автор

Could you please teach us how to use Jquery and Ajax to upload multiple images? Thanks!

ViruaLGameplays
Автор

thanks you for videos,
But I would like the image to be inserted at the same time in the database please, can you show the code

dazynicolas
Автор

Where are you bro.
You are not posting anything for 3 days are you okey??
Or you are planing for something??

brkseries