2017 © Pedro Peláez
 

elgg-plugin hypedropzone

Drag-n-drop file uploads for Elgg

image

coldtrick/hypedropzone

Drag-n-drop file uploads for Elgg

  • Thursday, May 3, 2018
  • by jeabakker
  • Repository
  • 0 Watchers
  • 0 Stars
  • 450 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 11 Forks
  • 0 Open issues
  • 21 Versions
  • 15 % Grown

The README.md

Drag&Drop File Uploads for Elgg

Elgg 2.2, (*1)

Drag&Drop File Uploads for Elgg, (*2)

Features

  • Cross-browser support for drag&drop file uploads
  • Easy to integrate into existing forms

Dropzone, (*3)

Developer Notes

Adding a drag&drop file input and processing uploads

To add a drag&drop input to your form, add the following:, (*4)

echo elgg_view('input/dropzone', array(
        'name' => 'upload_guids',
        'accept' => "image/*",
        'max' => 25,
        'multiple' => true,
        'container_guid' => $container_guid, // optional file container
        'subtype' => $subtype, // subtype of the file entities to be created
        // see the view for more options
    ));

In your action, you can retrieve uploaded files with get_input('upload_guids');, (*5)

You also need to implement a fallback solution for when the browser does not support drag and drop. Check hypeJunction\DropzoneService for an example., (*6)

Initializing and resetting dropzone

You can instantiate and clear dropzone by triggering jQuery events on the containing form:, (*7)

$('.elgg-form').trigger('initialize'); // will instantiate dropzone inputs contained within the form
$('.elgg-form').trigger('reset'); // will clear previews and hidden guid inputs

Acknowledgements / Credits

  • Dropzone.js is a really cool library by Matias Meno http://www.dropzonejs.com/

The Versions

03/05 2018

dev-master

9999999-dev http://hypejunction.com

Drag-n-drop file uploads for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov
by ColdTrick IT Solutions

plugin upload dropzone elgg drag-n-drop

03/05 2018

v5.2

5.2.0.0 http://hypejunction.com

Drag-n-drop file uploads for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov
by ColdTrick IT Solutions

plugin upload dropzone elgg drag-n-drop

06/09 2017

v5.1.4

5.1.4.0 http://hypejunction.com

Drag-n-drop file uploads for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov
by ColdTrick IT Solutions

plugin upload dropzone elgg drag-n-drop

31/07 2017

v5.1.3

5.1.3.0 http://hypejunction.com

Drag-n-drop file uploads for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov
by ColdTrick IT Solutions

plugin upload dropzone elgg drag-n-drop

26/01 2017

v5.1.2

5.1.2.0 http://hypejunction.com

Drag-n-drop file uploads for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov
by ColdTrick IT Solutions

plugin upload dropzone elgg drag-n-drop

20/12 2016

v5.1.1

5.1.1.0 http://hypejunction.com

Drag-n-drop file uploads for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov
by ColdTrick IT Solutions

plugin upload dropzone elgg drag-n-drop

16/12 2016

v5.1

5.1.0.0 http://hypejunction.com

Drag-n-drop file uploads for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov
by ColdTrick IT Solutions

plugin upload dropzone elgg drag-n-drop

30/08 2016

5.0.1

5.0.1.0 http://hypejunction.com

Drag-n-drop file uploads for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin upload dropzone elgg drag-n-drop

29/08 2016

4.x-dev

4.9999999.9999999.9999999-dev http://hypejunction.com

Drag-n-drop file uploads for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin upload dropzone elgg drag-n-drop

17/08 2016

5.0.0

5.0.0.0 http://hypejunction.com

Drag-n-drop file uploads for Elgg

  Sources   Download

GPL-2.0

The Development Requires

by Ismayil Khayredinov

plugin upload dropzone elgg drag-n-drop

17/08 2016

5.x-dev

5.9999999.9999999.9999999-dev http://hypejunction.com

Drag-n-drop file uploads for Elgg

  Sources   Download

GPL-2.0

The Development Requires

by Ismayil Khayredinov

plugin upload dropzone elgg drag-n-drop

06/07 2016

4.2.3

4.2.3.0 http://hypejunction.com

Drag-n-drop file uploads for Elgg

  Sources   Download

GPL-2.0

The Development Requires

by Ismayil Khayredinov

plugin upload dropzone elgg drag-n-drop

20/10 2015

4.2.1

4.2.1.0 http://hypejunction.com

Drag-n-drop file uploads for Elgg

  Sources   Download

GPL-2.0

The Development Requires

by Ismayil Khayredinov

plugin upload dropzone elgg drag-n-drop

22/09 2015

4.2.0

4.2.0.0 http://hypejunction.com

Drag-n-drop file uploads for Elgg

  Sources   Download

GPL-2.0

The Development Requires

by Ismayil Khayredinov

plugin upload dropzone elgg drag-n-drop

28/07 2015

4.1.0

4.1.0.0 http://hypejunction.com

Drag-n-drop file uploads for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin upload dropzone elgg drag-n-drop

12/06 2015

4.0.0

4.0.0.0 http://hypejunction.com

Drag-n-drop file uploads for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin upload dropzone elgg drag-n-drop

16/04 2015

3.2.0

3.2.0.0 http://hypejunction.com

Drag&Drop File Uploads

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin upload elgg drag-n-drop

15/01 2015

3.1.1

3.1.1.0 http://hypejunction.com

Drag&Drop File Uploads

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin upload elgg drag-n-drop

24/11 2014

3.0.0

3.0.0.0 http://hypejunction.com

Drag&Drop File Uploads

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin upload elgg drag-n-drop

10/07 2014

dev-elgg1.8

dev-elgg1.8 http://hypejunction.com

Drag&Drop File Uploads

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin upload elgg drag-n-drop

14/06 2014

1.0.1

1.0.1.0 http://hypejunction.com

Drag&Drop File Uploads

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin upload elgg drag-n-drop