In my previous post, upload a single files, rename a file, file size validation, file type validation. In this, How to upload multiple files using PHP. Link for previous posts as follow. Click here - Upload a single file using PHP Click here - Upload a single file using PHP - II
In the previous post, we've seen how to upload a file using php. In this post, how to rename a file and validate file size and type. Rename a file First, lets create the form with enctype "multipart/form-data", method "post" and input tags file, submit using the html: <form method="post" enctype="multipart/form-data" > <input type="file"