innostudio / fileuploader

Beautiful and powerful HTML file uploading tool. A jQuery, PHP and Node.js plugin that transforms the standard input into a revolutionary and fancy field on your page.
141 stars 25 forks source link

Captions Options Still working ? #59

Closed Yvan-C closed 4 years ago

Yvan-C commented 4 years ago

Hi i'm about to use the fileuploader plugin in a multi language website, I saw that captions can be translated but It seems to not be working with me,

Here is my instance :

$('input[name="files"]').fileuploader({
    onSelect: function(item) {
            if (!item.html.find('.fileuploader-action-start').length)
                item.html.find('.fileuploader-action-remove').before('<a class="fileuploader-action fileuploader-action-start" title="Upload"><i></i></a>');
        },
    upload: {
        url: 'top_temps.php',
        data: null,
        type: 'POST',
        enctype: 'multipart/form-data',
        start: true,
        synchron: true,
        onSuccess: function(result, item) {
            item.html.find('.fileuploader-action-remove').addClass('fileuploader-action-success');
            console.log('upload');
        },
        onError: function(item) {
            item.upload.status != 'cancelled' && item.html.find('.fileuploader-action-retry').length == 0 ? item.html.find('.column-actions').prepend(
                '<a class="fileuploader-action fileuploader-action-retry" title="Retry"><i></i></a>'
            ) : null;
        },
        onComplete: null,
    },
    onRemove: function(item) {
        // send POST request
        $.post('./php/ajax_remove_file.php', {
            file: item.name
        });
    },
    limit:1,
    maxSize: null,
    fileMaxSize: null,
    extensions: null,
    captions:'fr',
});

Do I have set the translation options wrong or do i need to go for the full translations method (create the object and replace one by one the captions used )

Sorry for bad english and thanks for your time.

innostudio commented 4 years ago

@Yvan-C which version do you have?

Yvan-C commented 4 years ago

Thanks for the fast reply i currently have the 2.2 version of fileuploader

Yvan-C commented 4 years ago

Actually is a version from 2019

Version: 2.2 (01-Apr-2019)

Yvan-C commented 4 years ago

I figured it out it seems i have download the free version ;) ! Thank you