Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Progress Bar Show/Hide rapidly with scaling feature #1928

Open
2 of 5 tasks
innamhunzai opened this issue Oct 8, 2017 · 0 comments
Open
2 of 5 tasks

Progress Bar Show/Hide rapidly with scaling feature #1928

innamhunzai opened this issue Oct 8, 2017 · 0 comments

Comments

@innamhunzai
Copy link

innamhunzai commented Oct 8, 2017

Type of issue

  • Bug report
  • Feature request

Uploader type

  • Traditional
  • S3
  • Azure
Bug Report

Fine Uploader version

{5.15.0}

Browsers where the bug is reproducible

{ "Firefox" , "IE11", "Chrome"}

Operating systems where the bug is reproducible

{"Windows 10"}

Exact steps required to reproduce the issue

For example:

  1. Enable scaling for basic uploader.
  2. Try to upload multiple files.

Expected Behavior:
The total progress bar appears and update according to overall progress

Actual Behavior:
The total progress bar show/hide rapidly per file upload

Sample JS Code

$('#fine-uploader').fineUploader({
                template: 'qq-template',
                request: {
                    endpoint: '/FileUploader/index'
                },
                deleteFile: {
                    enabled: true,
                    endpoint: "/FileUploader/index"
                },
                thumbnails: {
                    placeholders: {
                        waitingPath: '<?= base_url("assets/fine-uploader/placeholders/waiting-generic.png"); ?>',
                        notAvailablePath: '<?= base_url("assets/fine-uploader/placeholders/not_available-generic.png"); ?>'
                    }
                },
                validation: {
                    allowedExtensions: ['jpeg', 'jpg', 'png'],
                    itemLimit: 20,
                    sizeLimit: 5000000 // 5 mb
                },
                scaling: {
                    includeExif: true,
                    sendOriginal: false,
                    sizes: [
                        {name: "medium", maxSize: 1024}
                    ]
                },
            });

Your Fine Uploader template markup

<script type="text/template" id="qq-template">
    <div class="qq-uploader-selector qq-uploader" qq-drop-area-text="Drop files here">
        <div class="qq-total-progress-bar-container-selector qq-total-progress-bar-container">
            <div role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" class="qq-total-progress-bar-selector qq-progress-bar qq-total-progress-bar"></div>
        </div>
        <div class="qq-upload-drop-area-selector qq-upload-drop-area" qq-hide-dropzone>
            <span class="qq-upload-drop-area-text-selector"></span>
        </div>
        <div class="qq-upload-button-selector qq-upload-button">
            <div>Upload a file</div>
        </div>
            <span class="qq-drop-processing-selector qq-drop-processing">
                <span>Processing dropped files...</span>
                <span class="qq-drop-processing-spinner-selector qq-drop-processing-spinner"></span>
            </span>
        <ul class="qq-upload-list-selector qq-upload-list" aria-live="polite" aria-relevant="additions removals">
            <li>
                <div class="qq-progress-bar-container-selector">
                    <div role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" class="qq-progress-bar-selector qq-progress-bar"></div>
                </div>
                <span class="qq-upload-spinner-selector qq-upload-spinner"></span>
                <span class="qq-upload-file-selector qq-upload-file"></span>
                <span class="qq-edit-filename-icon-selector qq-edit-filename-icon" aria-label="Edit filename"></span>
                <input class="qq-edit-filename-selector qq-edit-filename" tabindex="0" type="text">
                <span class="qq-upload-size-selector qq-upload-size"></span>
                <button type="button" class="qq-btn qq-upload-cancel-selector qq-upload-cancel">Cancel</button>
                <button type="button" class="qq-btn qq-upload-retry-selector qq-upload-retry">Retry</button>
                <button type="button" class="qq-btn qq-upload-delete-selector qq-upload-delete">Delete</button>
                <span role="status" class="qq-upload-status-text-selector qq-upload-status-text"></span>
            </li>
        </ul>

        <dialog class="qq-alert-dialog-selector">
            <div class="qq-dialog-message-selector"></div>
            <div class="qq-dialog-buttons">
                <button type="button" class="qq-cancel-button-selector">Close</button>
            </div>
        </dialog>

        <dialog class="qq-confirm-dialog-selector">
            <div class="qq-dialog-message-selector"></div>
            <div class="qq-dialog-buttons">
                <button type="button" class="qq-cancel-button-selector">No</button>
                <button type="button" class="qq-ok-button-selector">Yes</button>
            </div>
        </dialog>

        <dialog class="qq-prompt-dialog-selector">
            <div class="qq-dialog-message-selector"></div>
            <input type="text">
            <div class="qq-dialog-buttons">
                <button type="button" class="qq-cancel-button-selector">Cancel</button>
                <button type="button" class="qq-ok-button-selector">Ok</button>
            </div>
        </dialog>
    </div>
</script>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant