将文件上传到服务器

发布于 2024-12-29 21:39:47 字数 110 浏览 2 评论 0原文

我希望用户将文件上传到服务器。

在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

万人眼中万个我 2025-01-05 21:39:47

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...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文