Rate this article

Files uploaded from the browser cannot be accessed

Rating: 0.0/5 (0 votes cast)

Issue

When I try to access any of the files that were uploaded from a site page, to either open, copy or delete, I get an error message saying that I do not have permission to perform the requested action.

Reason

This happens because when the file upload takes place, the file rights for the file are granted only for the user that runs the web-server. In most cases, this user is not the same as the user account you login through a ftp connection, or in the shell. The default access rights when uploading files with the File Upload server behavior in MX Kollection 3 are the same as the ones set for the process owner.

Solution

 

To be able to access these files, you will have to change the access rights that are granted, right after uploading them. In MX Kollection 3.1, there is a solution for the PHP and ColdFusion server model:

  1. Open the <site root>/includes/common/KT_config.inc.php (if using PHP) or <site root>/includes/common/KT_config.inc.cfm (for ColdFusion).
  2. In this file, there are two URL parameters:
    • $KT_file_mode (PHP) / Request.KT_file_mode (CF) - this parameter controls the file permissions
    • $KT_folder_mode (PHP) / Request.KT_folder_mode (CF) - this controls the folder permissions (for folders that are created when uploading files)
  3. Change the values of these parameters to the desired access rights. (e.g. if you set $KT_file_mode =644, when the file is uploaded, the system will try to change its access rights. If it cannot, the default rights will remain).

 


Adobe

ionCube Online PHP Encoder
Free PositiveSSL and WhoisGuard with Every Domain Purchase
XMS Systems

Although we try to ensure all the articles submitted are valid it is your responsibility to make sure you have backups before you use these suggestions on your pc or websites.
We do not take any responsibility for any data-loss, loss in functionality or any problem that might arise in what-ever way or form by making use of the information on this site.

"Friends of Interakt" has no connection to the Adobe Interakt Company