Multiple file upload in php

2018-12-31 03:26发布

I want to upload multiple files and store them in a folder and get the path and store it in the database... Any good example you looked for doing multiple file upload...

Note: Files can be of any type...

13条回答
明月照影归
2楼-- · 2018-12-31 04:06
$property_images = $_FILES['property_images']['name'];
    if(!empty($property_images))
    {
        for($up=0;$up<count($property_images);$up++)
        {
            move_uploaded_file($_FILES['property_images']['tmp_name'][$up],'../images/property_images/'.$_FILES['property_images']['name'][$up]);
        }
    }
查看更多
登录 后发表回答