本文介绍了如何在文件上传时获取完整路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 嗨 我想在上传任何图片或文件时获取文件的完整路径。解决方案 你究竟是什么意思? @hsriat 当我们上传文件时,它需要路径,我想要获得完整的路径 当你试图上传文件时,你必须定义一个你必须移动上传文件的路径。请在php.net上浏览move_uploaded_file。这将为您提供全面的详细信息或尝试查看谷歌。 HiI want to get the complete path of a file when we are uploading any image or file. 解决方案 what exactly did you mean?@hsriatwhen we are uploading file it takes path and I want to get that complete pathwhen you are trying to upload a file then u have to define a path where u have to move the uploaded file. please go through move_uploaded_file at php.net. this will give u comprehensive details or try to look at google. 这篇关于如何在文件上传时获取完整路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 07-22 21:51