将文件上传到服务器
我希望用户将文件上传到服务器。
在 cffile 的目标路径中,我将其指定为 \servername\folder\filename。
但是,它不识别这条路径。有什么建议吗?
I want the user to upload files to server.
In the destination path of cffile I am giving it as \servername\folder\filename.
However, it doesn't recognize this path. Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
UNC 路径不需要两个前导斜杠吗?
\\servername\path\to\file\
在您的示例中,您只有 ;
\servername...
否则,正如其他人所建议的那样,这可能是权限错误。
我昨天和今天才使用 CFFILE,使用服务器的 UNC 路径。
另外,服务器是什么操作系统,在尝试连接到 MS 服务器时有时会出现一些奇怪的情况。例如。如果您使用 SERVERNAME 的完全限定域名,请尝试仅使用计算机名称。或者反之亦然...
don't you need two leading slashes for a UNC path?
\\servername\path\to\file\
in your example you only have;
\servername.....
Otherwise, as other have suggested it might be a permissions error.
I have only just been using CFFILE yesterday and today, using a UNC path to the server.
Also, what OS is the server, there are some oddities sometimes when trying to attach to a MS-Server. Eg. If you;re using a fully qualified domain name for SERVERNAME, try just the computer name. Or vice-versa...