在PHP中上传文件

Nit*_*dal 2 php

我如何将单个文件上传到 多个位置或文件夹

我使用move_uploaded_file()两次,但它只能工作一次

Mat*_*den 7

您可以使用

copy($source_file, $destination_file);
Run Code Online (Sandbox Code Playgroud)

$source_file您刚刚上传的文件在哪里,并且$destination_file是您希望副本驻留的位置.