All I am playing with is input to ask for file to be uploaded with action template which executes the cffile tag.
The file I am uploading is within same server (W2K). The source file is c:\Documents and Settings\My Documents\My Images\uploadthis.jpg. If you notice the error, it says that object is not found. The error also shows what the variable myFile holds and it appears to be a temporary copy created by CF. So, I conclude that CF is not able to create this file thus unable to be uploaded by CFFILE.
I checked for file c:\winnt\temp\ACF22.TMP and it is not there. Every time I try, the counter increments (ACF24 ...). Is this a share/permission issue?
Thank you all in advance;
josel
Two simple sets of code:
<!--- template to ask for file to be uploaded --->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>CFFILE Upload screen</title>
</head>
<body>
<h3>CFFILE Upload screen</h3>
<form action="uploadImageComplete.cfm" method="post" enctype="multipart/form-data">
Name of file:<br>
<input type="file" size="60" name="myFile">
<br>
<input type="submit" value="Upload">
</form>
</body>
</html>
<!--- template to upload file --->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>CFFILE - Successful</title>
</head>
<body>
<cffile
action="upload"
filefield="myFile"
destination="c:\inetpub\
File Was sucessfully uploaded!
</body>
</html>
<!--- Error I get upon submitting --->
Error Occurred While Processing Request
Error Diagnostic Information
An error has occurred.
HTTP/1.0 404 Object Not Found
----------------------------------------------------
Execution Time
0 milliseconds
-----------------------------------------------------Parameters
Form Fields:
FIELDNAMES=MYFILE
MYFILE=C:\WINNT\TEMP\ACF22.tmp
If you have the knowledge, consult and educate those who need it! - Jose Lerebours
The file I am uploading is within same server (W2K). The source file is c:\Documents and Settings\My Documents\My Images\uploadthis.jpg. If you notice the error, it says that object is not found. The error also shows what the variable myFile holds and it appears to be a temporary copy created by CF. So, I conclude that CF is not able to create this file thus unable to be uploaded by CFFILE.
I checked for file c:\winnt\temp\ACF22.TMP and it is not there. Every time I try, the counter increments (ACF24 ...). Is this a share/permission issue?
Thank you all in advance;
josel
Two simple sets of code:
<!--- template to ask for file to be uploaded --->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>CFFILE Upload screen</title>
</head>
<body>
<h3>CFFILE Upload screen</h3>
<form action="uploadImageComplete.cfm" method="post" enctype="multipart/form-data">
Name of file:<br>
<input type="file" size="60" name="myFile">
<br>
<input type="submit" value="Upload">
</form>
</body>
</html>
<!--- template to upload file --->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>CFFILE - Successful</title>
</head>
<body>
<cffile
action="upload"
filefield="myFile"
destination="c:\inetpub\
File Was sucessfully uploaded!
</body>
</html>
<!--- Error I get upon submitting --->
Error Occurred While Processing Request
Error Diagnostic Information
An error has occurred.
HTTP/1.0 404 Object Not Found
----------------------------------------------------
Execution Time
0 milliseconds
-----------------------------------------------------Parameters
Form Fields:
FIELDNAMES=MYFILE
MYFILE=C:\WINNT\TEMP\ACF22.tmp
If you have the knowledge, consult and educate those who need it! - Jose Lerebours