jQuery AJAX file upload PHP

前端 未结 6 1005
小鲜肉
小鲜肉 2020-11-21 05:15

I want to implement a simple file upload in my intranet-page, with the smallest setup possible.

This is my HTML part:



        
6条回答
  •  南旧
    南旧 (楼主)
    2020-11-21 06:03

    and this is the php file to receive the uplaoded files

     'There was an error uploading your files') : array('files' => $files);
        } else {
            $data = array('success' => 'NO FILES ARE SENT','formData' => $_REQUEST);
        }
    
        echo json_encode($data);
    ?>
    

提交回复
热议问题