Jump to content

Uploading multiple files


arunpatal

Recommended Posts

Hi,

 

I am uploading multiple files

<form enctype="multipart/form-data" method="post"> 
    <input type="file" name="gallery[]" multiple="multiple" /> 
   <input type="submit" value="Update" name="gallery_submit" />
</form> 

But if not empty statement is not working with it

if (!empty($_FILES["gallery"]["name"])){
$mysql->upload_gallery_img($gallery1); }

I want that when file is selected then only the upload_gallery_img function runs

Link to comment
https://forums.phpfreaks.com/topic/287442-uploading-multiple-files/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.