Rick,

CFFILE has no way of knowing the client's file system... 

CFFILE simply reads encoded data dumped into a HTTP request, converts it
to a temp file, and gives the CF code the path to the CF temp file.

The browser is the thing which encodes this data destined for the
server, and all the server can do is take what it's given.  Therefore
CFFILE would never be able to read anything other than what the browser
gave it.

Even applets which offer you a "Select Folder" to upload, ultimately
encode each file into a separate form element, and send the bytes in the
request body to the server.

-Dov

-----Original Message-----
From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 09, 2005 3:57 PM
To: CF-Talk
Subject: RE: How to Browse and Choose Directory...

Oh, yeah, yeah...I see what you're saying...I'm not thinking straight.
I can't pull files off the client's machine...

But, wait...if I set up a CFFILE upload function that loops through the
directory that the client specifies...why wouldn't that work?

I'm not accessing the client's machine (as Bryan mentioned), the client
has simply specified a directory for the CFFILE to look in.

I would have the code loop through the directory that is specified,
"C:\Photos" compile the list, the use CFFILE to upload each photo to my
server one at a time...

Why wouldn't that work?

Rick


-----Original Message-----
From: Jerry Johnson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 09, 2005 3:27 PM
To: CF-Talk
Subject: RE: How to Browse and Choose Directory...


The Cold Fusion server cannot see the client's machine, not even for the
one file.

The file is actually sent to the server by the client's browser as part
of a form. The browser is the software that finds the file and uploads
it. The server cannot see any files on the client's hard drive.

Let's say you did as intended and had the browser send the folder name
to the server as a form variable.
The server would receive something like "C:\My photos\"
The server would try to look in that folder, and not find any photos,
since it would only have access to it's own C: drive, not the client's.

Does this make sense?


Jerry Johnson
Web Developer
Dolan Media Company

>>> [EMAIL PROTECTED] 03/09/05 03:26PM >>>
It will be a folder somewhere on the client's machine...I have no access
to it.

Just figured there was a way for a user to designate a directory in CF
by browsing their machine...







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198031
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to