Page 1 of 1
File Management UPLOAD Not Functioning
Posted: Wed Jun 01, 2005 4:13 pm
by bomag
I've installed CMSMS (version 0.9.2) and all works except for File Management. Evertime I upload something it appears to be working, but when the upload is complete, nothing appears. I've check the physical location to see if the file was actually there but it was not. I've check the "uploads" folder permission and it is set to 777. I've also placed items within the "uploads" folder and then checked File Management link. The items I placed within the "uploads" folder listed just fine and I was able to link them.
I thought it was uploading to wrong directory but it doesn't - uploads or uploads/images or uploads/newcreatedfolder it doesn't matter. It just goes through the motions and nothing happens. I know it is not a size issue because I have tried to upload pdf file that was 60k.
Has anyone had this problem where nothing will upload? Could it be a setting that needs to be adjusted within the PHP.inf file? If so what?
Thanks,
Tim
Re: File Management UPLOAD Not Functioning
Posted: Wed Jun 01, 2005 4:26 pm
by Ted
This sounds like a php issues, as opposed to CMSMS specifically. Is the tmp directory writable? Take a look at the file_uploads, upload_max_filesize, upload_tmp_dir and other parameters in php.ini and see if they're all set to reasonable values.
CMSMS uses the standard PHP method for uploading files. It puts the files into the system tmp dir (unless it's overridden by upload_tmp_dir in php.ini) and then moves them to the proper location afterward. Because of this, it could be any number of things going wrong, though it's usually path or permission related.
Re: File Management UPLOAD Not Functioning
Posted: Wed Jun 01, 2005 7:26 pm
by bomag
Thanks for the tip but still nothing. I've check all my permissions and paths again all are ok. I can create directories with the Create New Folder button. I've check all the php.ini file you suggested. It is at defaults.
What are the requirements needed to run cmsms - MYSQL version, PHP version, globals on/off etc.?
If I can create a directory in the uploads folder (Permissions 777) should I be able to upload to it.
Do I have to have a folder called uploads in the tmp directory? The tmp directory is writable (777).
Any other suggestions?
Thanks,
Tim
Re: File Management UPLOAD Not Functioning
Posted: Wed Jun 01, 2005 7:32 pm
by Ted
As far as I know, it just needs write access to the regular tmp directory. PHP saves it there and puts the metadata into a $_FILES global. The module then checks the info and moves it to the proper place if all is good.
Create New Directory doesn't do anything flashy. It just makes a new directory in the right place, which is why it's hard to use that as a gauge. Do you have any other php apps that allow uploads? (can anyone make suggestions as to which ones do?)
Basic requirements are: php 4.1.2, mysql 3.23.something or other, globals most definatly off.
Re: File Management UPLOAD Not Functioning
Posted: Thu Jun 02, 2005 7:05 am
by fred
Hi,
I have the same issue today.
Just get over it by modifying max file size limit the config.php in /cms/ folder.
$config['max_upload_size'] = 10000000;
Hope it's that simple.
Cheers,
Fred