![]() ![]() ![]() $builder->connect('/upload', ) īước 2: Tại ArticlesController. Note: The default file upload size using a browser is usually 2MB so files larger than this size may not upload. Create a file upload script (upload-file.php) This will upload the file to the specified path. Và $builder->registerMiddleware('csrf', new CsrfProtectionMiddleware([ File upload is a huge security risk so you must check what type of files are being uploade. Trước khi bắt tay vào thực hành bạn cần tham khảo qua bài viết Đọc, thêm, sửa, xóa trong Cakephp 4.īước 1: Tại config/route.php thêm use Cake\Http\Middleware\CsrfProtectionMiddleware Trong bài viết này chúng ta sẽ thực hành upload file trong Cakephp 4. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |