I installed MeshChat on Raspberry Pi. The file size appears to be 0. I couldn't find this setting in the configuration file. How can I increase the size of this file?
My config:
our $lock_fh;
our $meshchat_path = "/var/www/html/meshchat/tmp/meshchat";
our $max_messages_db_size = 500;
our $max_file_storage = 2 * 1024 * 1024;
our $lock_file = $meshchat_path . '/lock';
our $messages_db_file = '/var/www/html/meshchat/db/messages';
our $messages_db_file_orig = '/var/www/html/meshchat/db/messages';
our $action_log_file = '/var/www/html/meshchat/db/action.log';
our $action_error_log_file = '/var/www/html/meshchat/db/action_error.log';
our $action_messages_log_file = '/var/www/html/meshchat/db/action_messages.log';
our $sync_status_file = $meshchat_path . '/sync_status';
our $local_users_status_file = $meshchat_path . '/users_local';
our $remote_users_status_file = $meshchat_path . '/users_remote';
our $remote_files_file = $meshchat_path . '/files_remote';
our $messages_version_file = $meshchat_path . '/messages_version';
our $pi_nodes_file = $meshchat_path . '/pi';
our $local_files_dir = '/var/www/html/meshchat/tmp/web/upload';
our $tmp_upload_dir = '/tmp/web/upload';
our $poll_interval = 10;
our $non_meshchat_poll_interval = 600;
our $connect_timeout = 5;
our $platform = 'pi';
our $debug = 0;
our $extra_nodes = [];
our $action_conf_file = '/etc/meshchat_actions.conf';
My config:
our $lock_fh;
our $meshchat_path = "/var/www/html/meshchat/tmp/meshchat";
our $max_messages_db_size = 500;
our $max_file_storage = 2 * 1024 * 1024;
our $lock_file = $meshchat_path . '/lock';
our $messages_db_file = '/var/www/html/meshchat/db/messages';
our $messages_db_file_orig = '/var/www/html/meshchat/db/messages';
our $action_log_file = '/var/www/html/meshchat/db/action.log';
our $action_error_log_file = '/var/www/html/meshchat/db/action_error.log';
our $action_messages_log_file = '/var/www/html/meshchat/db/action_messages.log';
our $sync_status_file = $meshchat_path . '/sync_status';
our $local_users_status_file = $meshchat_path . '/users_local';
our $remote_users_status_file = $meshchat_path . '/users_remote';
our $remote_files_file = $meshchat_path . '/files_remote';
our $messages_version_file = $meshchat_path . '/messages_version';
our $pi_nodes_file = $meshchat_path . '/pi';
our $local_files_dir = '/var/www/html/meshchat/tmp/web/upload';
our $tmp_upload_dir = '/tmp/web/upload';
our $poll_interval = 10;
our $non_meshchat_poll_interval = 600;
our $connect_timeout = 5;
our $platform = 'pi';
our $debug = 0;
our $extra_nodes = [];
our $action_conf_file = '/etc/meshchat_actions.conf';
73, Chuck
73, Chuck
File sharing is best done with a program like FileGator ... you have better control and can make folders, keep things organized etc. Using MeshChat for file sharing means that anyone can delete the file, clog up the node, and the files can only be deleted by accessing meshchat thru the node that they were originally uploaded to.
I'd leave meshchat for chat and put a file server on the pi.
Ed
I personally like the idea of separating out the file sharing code from MeshChat to simplify the MeshChat code base and allowing MeshChat to focus on one thing and do it well (better). I can foresee maybe a better solution being a couple of plugins that allow MeshChat to interact with what ever file service there is to allow users to reference the files easily.
In any event if you have any options or thoughts, please feel free to add them to the issue referenced above.
73
Gerard, WTØF
Talk about mission creep. The best is the enemy of the better. I thought you were going to ask if file storage on meshchat was a good idea or not. I had no idea folks were talking about even more sync. Not for me. Please just keep it simple and reliable. Ya gotta know when to say no.
Ed
Lee
Did the file actually up load?
Is meshchat File display folder the same as the upload folder?
73, Chuck