ItsOnlyBinary / kiwiirc-plugin-avatar-upload

Apache License 2.0
1 stars 3 forks source link

Upload button problem #8

Open xuban opened 3 weeks ago

xuban commented 3 weeks ago

Hi!`

Thank you for your amazing work and plugins. I have ERGO IRCD with Kiwiirc (without gateway) working well. I installed ASL, conference and emojis plugins without problem. When i try to use this plugin, when i push the "upload" button nothing happens. I checked inspect tools in Chrome and i can't see any error (except 404 error when connect and try to retrieve the Image if not uploaded manually).

And this is in my config.json file. Plugins loaded:

"plugins": [ { "name": "asl", "url": "plugins/asl/plugin-asl.js" }, { "name": "conference", "url": "plugins/conference/plugin-conference.min.js" }, { "name": "emoji", "url": "plugins/emojis/plugin-emojis-prelim.js"}, { "name": "avatar-upload", "url": "plugins/avatar/plugin-avatar-upload.js"}

],

And the configuration of plugin:

"plugin-avatar-upload" : { // Url path to api.php "api_url": "static/plugins/avatar/server-php/api.php", // Url path to avatar storage directory "avatars_url": "avatar/", "preload_avatars": false, "set_avatars": true, },

This is my api.php conf:

require 'vendor/autoload.php';

use Firebase\JWT\JWT; use Firebase\JWT\Key;

const JWT_ALGORITHM = 'hmac'; const THUMBNAIL_LARGE = 200; const THUMBNAIL_SMALL = 80;

const JWT_KEY = 'nANiZ1De4v6WnltCHN2H7Q'; const AVATAR_DIR = '/home/xxxx/public_html/chat/avatar'; const ALLOWED_DOMAINS = [ 'https://xxxx', '*127.0.0.1', ];

Any clue to find the problem is appreciated.