It's possible that you could do some reading/parsing using the
FileSystemObject and some client-side JavaScript. At that point you
could transfer the info to the server. In all likelihood, a message
will be popped up to the user, since reading their local file system is
a big security issue. The bottom line is that to read files on the
client's end, there must be some user interaction.
Personally, I'd stick with the file upload method, since that's the most
robust (FileSystemObject only available to IE, and only if their
security settings are set to allow that) solution.
--
Billy Cravens
[EMAIL PROTECTED]
Eric Fickes wrote:
>
> Hello all,
>
> I am creating a log analyzer cfm page for an internal db application, and
> I've got a question about cf pages reading files. When I view the page
> locally, I am able to read the log files just fine as is when I use <input
> tyep="file">. However, when I uploaded this page to my web server, or when
> I asked somebody to test my page, it didn't work because the log file they
> specified is not physically located on my machine. This makes sense to me.
> So to get around this, I have the page do a file upload to a temp dir, and
> then read the file from the temp dir. All is well. And now for my
> question.
>
> Is there any way for me to make a CF page that will read a user specified
> file without having to upload it to the server 1st?
>
> E
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists