Date:  10/10/2001 07:07:04 AM Msg ID:  000013
From:  David Cox Thread:  000012
Subject:  Re: Writefile()
Nevermind, I found my own solution after banging my head a few times. I had a variable called filename that held the full path and a database field called filename where I stored just the filename without the path. The field and the variable were conflicting. After changing the variable name everything is back to normal.


Sent by David Cox on 10/10/2001 06:51:37 AM:
I was experimenting with the writefile() function and yesterday I was able to specify a path such as writefile("f:\inetpub\temp\myfile.xls",formfield("Upfile") and it worked fine and went to the proper directory, Now this morning I was working on it again and at first I thought the upload wasn't working because no file was sent to the path I specified but then when I looked in the directory that the prg was located I found the files I had uploaded there. What could cause the path to stop working and make it start dumping the file in the current directory?

thanks