I'm getting "Couldn't Copy File To Server" error. I have done some troublshooting on this...
1) I have checked the permissions and they are 777.
2) I have verified that the login is checked properly.
3) I have verified that the folder is created, for the user, when a file upload is attempted, in the upload directory.
4) I have verified that the copy path is correct. I put some test code in to see what the script thinks the path is and it returns:
/MyAbsolutePath/ipscone/MyTestFile.gif, which is the correct absolute path.
5) I have even manually copied a file to the upload/member folder and when I try to use the Upload.php program to upload that same file, it correctly sees that it's a duplicate. So that part works ok.
6) I have tried to view that directory with the View Files and even though there is one file that was manually copied, it doesn't display with the View Files.
7) I modified the upload.php file to do some debugging and found something I can't explain. In the case view: section, I modified the following:
Code:
$dir = opendir("$absolute_path/$PHP_AUTH_USER")
or $list .= "<tr><td>Error: Can't open $absolute_path/$PHP_AUTH_USER</td></tr>";
while($file = readdir($dir)) {{
to see that the absolute path was right and it was. Now, I know there is one file in the directory but the code within the while loop does not execute even once. Since there is one file there (manually placed) it should go through this loop, at least once. Why not?
Can there be an incompatibility with php 4.3.1 that I'm using?
But the file just won't copy. I get "Couldn't Copy File to Server".
Any idea what might be causing this error? opendir adn copy seem to fail.
Is this the only UPLOAD program that produces individual folders for each of the members?
What version is included in the first post in this thread? Is there a newer version somewhere?