Put the file in the server-side/var/www/html/upload.php
Here can only make the TMP directory, if the development of other directories will upload failed, so can only be uploaded to the/tmp folder inside, how can I upload to the specified directory?
Put the file in the server-side/var/www/html/upload.php
Here can only make the TMP directory, if the development of other directories will upload failed, so can only be uploaded to the/tmp folder inside, how can I upload to the specified directory?
Yii::getAlias('@webroot')Corresponding 'D:/xampp/htdocs/project/web' to the physical path, the Linux server will be different.
You can choose to copy a copy of the past, pay attention to folder permissions issues; Move_uploaded_file () is also possible, but note whether the folder has write permissions
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.