google-code-backups / clients-oriented-ftp

Automatically exported from code.google.com/p/clients-oriented-ftp
0 stars 0 forks source link

Cannot enable client upload #262

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Admin checks Options-->Client-->Clients can upload files and then Saves
2. Admin validates using Options-->Client-->Clients can upload files, but it 
remains unchecked
3. Client account logs in and does not see user interface element to upload

What is the expected output? What do you see instead?
The Admin should be able to allow clients to upload files by checking that 
option.

What version of the product are you using? On what operating system?
r405 on CentOS 6

Please provide any additional information below.
After reading through the issues here, I attempted to download r375 and 
overwrote the installation.  At that point, the client had an upload button, 
but when pressed it errored with "your account does not have permissions.  
Contact sys admin"

Then, I redownloaded r405 on top, and still have the same problem.  I cannot 
get that checkbox (allow clients to upload files) to stick.  

Please help me.  Having clients (who are limited to one or more groups) upload 
files is essential to the success of using this solution.

The installation is at: http://send.redheartbooks.com/

Best regards,
James

Original issue reported on code.google.com by redheart...@gmail.com on 16 Apr 2013 at 6:16

GoogleCodeExporter commented 8 years ago
i listed the issue yesterday and the solution to download r375.
I think it did not work for you because the database was already created.
start with a fresh r375 and then update it and it will work.

hopefully the developer will fix this soon.

Original comment by j...@ittronix.com on 16 Apr 2013 at 8:22

GoogleCodeExporter commented 8 years ago
Thanks.  I found another brute-force method.

Alter upload-from-computer.php by adding comments to the checks for 
CLIENTS_CAN_UPLOAD in lines 17-19
(or you can simply replace the first line with $allowed_levels[] = 0;

$allowed_levels = array(9,8,7);
/* if (CLIENTS_CAN_UPLOAD == 1) {  */
    $allowed_levels[] = 0;
/*  }  */
include('header.php');

This worked and didn't require me to re-setup my site.

Thanks for the tip, though!

Original comment by redheart...@gmail.com on 16 Apr 2013 at 9:31

GoogleCodeExporter commented 8 years ago
Patch file has been posted for r405 here:

http://code.google.com/p/clients-oriented-ftp/issues/detail?id=265

You can also go into your database and run the following sql query:

INSERT INTO `tbl_options` (
`id` ,
`name` ,
`value`
)
VALUES (
'37', 'clients_auto_approve', '0'
), (
'38', 'clients_can_upload', '0'
);

Please be aware the 37 and 38 may need to be larger numbers. Increment the 
value as needed.

Original comment by shawn.k...@gmail.com on 19 Apr 2013 at 5:24