Multiple file upload in cake php9/18/2023 While creating a new form in cakephp with input type file, set enctype'=>'multipart/form-data' and code should be like this: Form->input('user_image. Each upload field can be configured independently of each other, such as. Here in this blog we will be uploading an image which will be stored on the server and the url of that file will be stored in the database so we can easily access it when a user has logged in.Ĭreate table Image in database with fields id name and email. The plugin can also upload multiple files at the same time to different fields. This is my Photo model:- public actsAs array( 'Upload.Upload' > array( 'image' > array( 'fields&39. Hello Readers.! Here is a small blog on how to upload multiple images in database using cakephp.File uploading, nowadays is a very basic and common functionality.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |