2006-12-13, 06:44 PM
Having installed the 1.2.1 version, I tried to add an attachment but I got an error message ""The file upload failed. Please choose a valid file and try again. Error details: There was a problem moving the uploaded file to its destination."
I almost read all the threads related to attachment errors in this forum, and all the replies to these threads concentrated on useless solutions: that the directory's chmod needs to be 777, and that the file size should be checked, etc.
I was really frustrated by these solutions because they are too simple-minded and they never work, and having tried almost everything, I discovered that the problem lies in the Uploads Path, which is "/uploads" by default. I guess this default path might work with some but it doesn't with others. To discover the right path is the key to the problem, because it may be difficult for you to find out the right path to use. Start by consulting your web hosting account documentation. The other solution to find your path is to download the attached file, decompress and upload the "findmypath.asp" to the root of your forum folder. I have put a path to "uploads2" folder that doesn't exist. Open this file in your browser by pointing to its location: "http://yoursite/forumfolder/findmypath.asp". An error message will be displayed:
Folder D:\hshome\yoursite location\uploads2 does not exist.
Copy the location "D:\hshome\yoursite location\[replace "uploads2" with the folder name of your uploads"] and then:
Follow these steps:
- Go to the Adminstration Control Panel
- Board Settings
- Change
- Server and Optimization Options - Modify Settings - Go
- Uploads Path
- Write the appropriate path which you have copied+the name of the upload folder and submit changes
It is strongly advised that you make a copy of the settings.php on your hard drive before changing any settings. If anything goes wrong re-upload your saved copy to the /inc root folder.
Best wishes to all.
I almost read all the threads related to attachment errors in this forum, and all the replies to these threads concentrated on useless solutions: that the directory's chmod needs to be 777, and that the file size should be checked, etc.
I was really frustrated by these solutions because they are too simple-minded and they never work, and having tried almost everything, I discovered that the problem lies in the Uploads Path, which is "/uploads" by default. I guess this default path might work with some but it doesn't with others. To discover the right path is the key to the problem, because it may be difficult for you to find out the right path to use. Start by consulting your web hosting account documentation. The other solution to find your path is to download the attached file, decompress and upload the "findmypath.asp" to the root of your forum folder. I have put a path to "uploads2" folder that doesn't exist. Open this file in your browser by pointing to its location: "http://yoursite/forumfolder/findmypath.asp". An error message will be displayed:
Folder D:\hshome\yoursite location\uploads2 does not exist.
Copy the location "D:\hshome\yoursite location\[replace "uploads2" with the folder name of your uploads"] and then:
Follow these steps:
- Go to the Adminstration Control Panel
- Board Settings
- Change
- Server and Optimization Options - Modify Settings - Go
- Uploads Path
- Write the appropriate path which you have copied+the name of the upload folder and submit changes
It is strongly advised that you make a copy of the settings.php on your hard drive before changing any settings. If anything goes wrong re-upload your saved copy to the /inc root folder.
Best wishes to all.