从内网上传文件到网络服务器,路径中是否应该包含文件名?

Uploading a file to a network server from intranet, should the file name be included in the path?

我正在使用rest工具从内网上传文件到网络服务器,收到错误:

"Access to the path '\\servername.com\subfolder1\subfolder2\file_name' is denied"

我的问题是,文件名应该出现在 "path" 错误中,还是应该只是尝试访问“\\subfolder2\\”?

我预计我收到的错误是由于我们为进行调用而模拟的服务帐户存在权限问题...但我想确认所使用的文件路径实际上应该包括现在的文件名。

答案是肯定的...尝试从内联网上传到网络服务器时,文件名应该在路径中。