Projects tigase _server server-core Issues #1372
Why can't my upload module get up (#1372)
Closed
Unknown opened 5 years ago
upload() {
    store {
        group-by-user = true
	path = '/data/upload/'
    }
}

this is my config.

Unknown commented 5 years ago

In the TDSL file format used for Tigase XMPP Server configuration files, you need to wrap group-by-user in ' chars as it contains - char in the property name. Your config should look like that:

upload() {
    store {
        'group-by-user' = true
        path = '/data/upload/'
    }
}
Unknown commented 5 years ago

In the TDSL file format used for Tigase XMPP Server configuration files, you need to wrap group-by-user in ' chars as it contains - char in the property name. Your config should look like that:

upload() {
    store {
        'group-by-user' = true
        path = '/data/upload/'
    }
}

thank you ,but it also can not work.i found it reqeust with my hostname ,not my domain name.

Unknown commented 5 years ago

In the TDSL file format used for Tigase XMPP Server configuration files, you need to wrap group-by-user in ' chars as it contains - char in the property name. Your config should look like that:

upload() {
    store {
        'group-by-user' = true
        path = '/data/upload/'
    }
}

thank you ,but it also can not work.i found it reqeust with my hostname ,not my domain name.

just like http://tigase-b:8080/upload/dragon@youliaoxmpp.com/28f7f619-80a9-46fa-86a1-8e8986959d3d/2bfb3ff8490549d8abccac906e0740e8.jpg the 'tigase-b' is my hostname,my domain is 'youliaoxmpp'.

Unknown commented 5 years ago

You can configure that using http-upload options and using serverName option:

upload() {
    store {
        'group-by-user' = true
        path = '/data/upload/'
        serverName = 'youliaoxmpp'
    }
}
Unknown commented 5 years ago

serverName = 'youliaoxmpp'

thank you very much. it is ok.

issue 1 of 1
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#1372
Please wait...
Page is in error, reload to recover