Jump to content

Multible file upload!


Recommended Posts

Hi all, 

In Prestashop has upload 1 file into database. I wanna modify to can upload multiple file into database. 

And in uploadProductFile.php I fixed to below but It has error "Property ProductDownload->filename is not valid". Anybody can help me with my issue! 

for($i=0; $i<count($_FILES['virtual_product_file']['name']);$i++)
    {
    	$filename = $_FILES['virtual_product_file']['name'][$i];
    	$file = $_FILES['virtual_product_file']['tmp_name'][$i];
    	$newfilename = ProductDownload::getNewFilename();
    }
Link to comment
Share on other sites

×
×
  • Create New...