Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Upload File from Local Drives & W2K Permissions

Status
Not open for further replies.

CptTom

Programmer
Jul 16, 2001
117
US
I want a user in Cold Fusion to be able to use the browser to point to a drive\file on their local machine (hard, floppy or CD) to upload the file to the server. I keep getting Path not found error unless I "Share" the directory to "Everyone". It is picking up the correct path and filename but barks at execution.

Anyone know how to get around the Windows 2k OS on this?

CPT Tom
 
is your code top secret?

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Not really, I do not believe it is the code part but what Domain User permissions ColdFusion operates under.

I have a code that uses the browser to populate Actual_Spreadsheet_Name and it is passing it, but can not find it unless I Share that drive/folder to everyone. In this case, it I am pointing to a file on my workstation CD Drive which is mapped as P.

CFLOCK NAME = "Lock_Name" TYPE = "Exclusive" timeout="30">
<CFFILE ACTION="Copy" SOURCE=#Actual_Spreadsheet_Name#
DESTINATION= "\\ServerName\FedLOG\CICF.TXT">
</CFLOCK>
 
fedlog? ie, fedral logistics?

anyway, let me get this straight... You're trying to copy a file from your cdrom on YOUR workstation up to the server?

why not use cffile action = "upload" not action = "copy" (that's why i wanted to see your code)

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Thanks, that solved part of it. It is picky as to which server I load to but I can get around that. Is there a way to maintain the files original filedate?
 
Is there a way to maintain the files original filedate?
huh?

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
When using the upload command, the file gets written to the server , but changes the associated filedate to the date and time of the upload. i.e. The filedate on the CD is 6/17/05; if I upload the file to the server today, the filedate on the server will be 7/27/05.
 
I'm not 100% on it, but i think last modified is a read only property of the file.

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top