![]() |
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") 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? |
Ok, I have a clue to the symptoms but no answer to the problem yet.
The opendir() and copy() fail because of the way the directory is created. The script uses the following to create the upload directory PHP Code:
But if I manually create any directory that I plan to use, instead of the program doing it, everything works fine. I can upload and the opendir() and copy() work fine. How does one change the script to avoid this problem? I believe it is normal for "apache" to be the owner of something created from the script but why doesn't the copy() and opedir() work for a directory that has "apache" as the owner? Any way around this? |
Now, I'm thinking this inability to use copy() and opendir() has to do with the open_basedir configuration.
The program works perfectly, if I manually create the folder and set the permissions. But if the program creates the directory, I can't open or copy to it. Anyone know how I can get around this and open and copy files, if this is the case? Or, if this is not the problem what is? |
man, where's v2? it sounds great
any1 here knows how to add more upload boxes? |
Quote:
i think u must go to telnet or SSH and change its chown from apache to that site's user. |
bump once again the creator if ur out there please share version 2 with us
|
:(
|
|
looks good is it intergrated in to users database?
|
Can it be edited to work with MP3's?
|
All times are GMT. The time now is 01:14 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|