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” name=”attachment”  […]