mariovaldez.net

MV.net forums
It is currently 14 Jul 2016, 01:00

All times are UTC - 7 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
PostPosted: 02 Jan 2005, 11:16 
:cry: I have found the discussion about not beeing able to upload files. It did not give me any usefull hint as to how to solve this problem.
My server allows to upload files. This ist 100% shure! I am uploading files every day with my own PHP-Script. Even the Filemanager from Phprojekt is working perfectly.

As soon as I want to upload a file with CMS, using the HTML WYSWIG-Editor, I recieve the message "Files can not be uploaded to this server".

Please help me. What can I do? :?:


Report this post
Top
  
Reply with quote  
 Post subject: Write permissions
PostPosted: 05 Jan 2005, 08:24 
Are you sure that the cm directory has write permissions?


Report this post
Top
  
Reply with quote  
 Post subject: Upload problem...
PostPosted: 09 Jan 2005, 02:42 
User avatar

Joined: 06 Mar 2003, 03:21
Posts: 447
Location: Monterrey, NL, Mexico
Hi.

Is the exact message "031. File uploads are disabled in this server."?

If it is, then the problem is that the CMS module cannot check if uploads are enabled in PHP. Do the following test,

Create a file containing this line:
Code:
<?php echo get_cfg_var ("file_uploads") . "<br>" . ini_get ("file_uploads"); ?>


Then upload it to your web server (in the same directory the CMS module is published) and view it with your browser. It should display two numbers 1's. If any of them is not 1, then please tell me what version of PHP are you using, what web server, what platform and if you are using PHP as CGI or as a SAPI/ISAPI module.

In the mean time (while I debug the problem) you can disable the checking by editing the following files: fileman.php and editorup.php. Just look for a line like:
Code:
$cm_canupload = get_cfg_var ("file_uploads");


and change it to something like this:
Code:
$cm_canupload = true;


But please note that this is a workaround, not a final solution. I need to replicate your problem for a definitive solution.

Now, if the message is different, then it may be other problem. Maybe a permissions problem as Mark has already commented.


Regards,

Mario A. Valdez-Ramirez.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group