문제

I'm trying to use "container" attribute pointing to iframe in mobile site version, but inkfilepicker sends desktop content in this case for both desktop and mobile devices. In attribute "container" is removed, I'm getting a new tab with mobile content. Please advice.

selectFilepickerService: function(service){
    var maxFilesize = $('#ufilepickContent form[name="filepickerConf"] input[name="max_file_size"]').val();
    this.lastService = service;
    filepicker.pick({
        mimetypes: ['image/*'],
        container: 'ufilepickService',
        maxSize  : maxFilesize,
        services : service
    }, $.proxy(function(fpfile){
        this.saveImage(fpfile.url, fpfile.filename);
    }, this));
},
도움이 되었습니까?

해결책

You can pass a parameter to force mobile mode by using mobile: true, for example

filepicker.pick({
    mimetypes: ['image/*'],
    container: 'ufilepickService',
    mobile: true,
    maxSize  : maxFilesize,
    services : service
}, $.proxy(function(fpfile){
    this.saveImage(fpfile.url, fpfile.filename);
}, this));
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top