0

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

在 cffile 的目标路径中,我将其命名为 \servername\folder\filename。

但是,它不识别此路径。有什么建议么?

4

1 回答 1

1

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

于 2012-02-09T03:57:45.590 回答