Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to list each of upload items progress in a CUSTOM notify ? #1667

Closed
kevinstyle opened this issue Sep 22, 2016 · 4 comments
Closed

How to list each of upload items progress in a CUSTOM notify ? #1667

kevinstyle opened this issue Sep 22, 2016 · 4 comments

Comments

@kevinstyle
Copy link

Hi, elfinder team

I'd like to dev a custom notify widget that can display each item's Name, Upload Progress, and can Cancel each item by user. Like google drive's behavior and UI, show as below.

google_drive_like

I have known that upload behavior is controlled by upload.js and elfinder.js, but it is very difficult to add new notify widget to support this.

Can you team members give me some hint ?

thanks.

@nao-pon
Copy link
Member

nao-pon commented Sep 23, 2016

@kevinstyle I also think this is a good idea, but its implementation is very difficult. We might need to change the specification. We are looking for ideas from everyone.

@CodeLyokoXtEAM
Copy link
Contributor

CodeLyokoXtEAM commented Sep 27, 2016

It is possible to upload files, one by one separate request in elfinder?

@nao-pon
Copy link
Member

nao-pon commented Sep 27, 2016

It is possible to upload files, one by one separate request in elfinder?

Yes, it is possible by result $results['uplMaxFile'] = 1 on initialization of the open command.

example for test (PHP >= 5.4)

$opts = [
    'bind' => [
        'open' => [
            function($cmd, &$result, $args) {
                if (! empty($args['init'])) {
                    $result['uplMaxFile'] = 1;
                }
            }
        ]
    ],
    'roots' => [
        [
            'driver' => 'LocalFileSystem',
            'path'   => '/path/to/files/',
            'URL'    => 'http://localhost/to/files/'
        ]
    ]
];

@diego3
Copy link

diego3 commented Dec 1, 2016

+1, Nice Widget

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

4 participants