Upload a file to a server

524 views Asked by At

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?

1

There are 1 answers

0
Gavin Baumanis On

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