2017 © Pedro PelΓ‘ez
 

craft-plugin uploadit

Front-end asset upload for fields, volumes and folders.

image

fruitstudios/uploadit

Front-end asset upload for fields, volumes and folders.

  • Thursday, June 14, 2018
  • by fruitstudios
  • Repository
  • 3 Watchers
  • 0 Stars
  • 64 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 10 Versions
  • 88 % Grown

The README.md

Uploadit plugin for Craft CMS 3.x

The unausuming front end asset uploader for Craft 3. Use as a standalone uploader or as field in one of your forms:, (*1)

Features:

  • Drop to upload
  • Reorder & remove uploads
  • Asset previews
  • Customisable
  • It's Vanilla (Zero dependencies writtin in battle tested javascript)

Requirements

This plugin requires Craft CMS 3.0.0-RC1 or later., (*2)

Installation

To install the plugin, follow these steps:, (*3)

  1. Install with Composer via:, (*4)

    composer require fruitstudios/uploadit
  2. In the Control Panel, go to Settings β†’ Plugins and click the β€œInstall” button for Uploadit., (*5)

Using Uploadit

Options, (*6)

{{ craft.uploadit.uploader({
    id: 'myUid',
    name: 'myFieldName',
    assets: [],

    field: 'images',
    element: entry,

    volume: 'myvolume',
    folder: 'my/folder/path',

    preview: 'image',
    transform: 'square',

    limit: 5,
    allowReorder: true,
    allowRemove: true,
    customClass: 'custom--class',

}) }}

id option

To drag elements from one list into another, both lists must have the same group value. You can also define whether lists can give away, give and keep a copy (clone), and receive elements., (*7)

  • name: String β€” group name
  • pull: true|false|'clone'|function β€” ability to move from the list. clone β€” copy the item, rather than move.
  • put: true|false|["foo", "bar"]|function β€” whether elements can be added from other lists, or an array of group names from which elements can be taken.
  • revertClone: boolean β€” revert cloned element to initial position after moving to a another list.

name option

To drag elements from one list into another, both lists must have the same group value. You can also define whether lists can give away, give and keep a copy (clone), and receive elements., (*8)

  • name: String β€” group name
  • pull: true|false|'clone'|function β€” ability to move from the list. clone β€” copy the item, rather than move.
  • put: true|false|["foo", "bar"]|function β€” whether elements can be added from other lists, or an array of group names from which elements can be taken.
  • revertClone: boolean β€” revert cloned element to initial position after moving to a another list.

assets option

To drag elements from one list into another, both lists must have the same group value. You can also define whether lists can give away, give and keep a copy (clone), and receive elements., (*9)

  • name: String β€” group name
  • pull: true|false|'clone'|function β€” ability to move from the list. clone β€” copy the item, rather than move.
  • put: true|false|["foo", "bar"]|function β€” whether elements can be added from other lists, or an array of group names from which elements can be taken.
  • revertClone: boolean β€” revert cloned element to initial position after moving to a another list.

field option

To drag elements from one list into another, both lists must have the same group value. You can also define whether lists can give away, give and keep a copy (clone), and receive elements., (*10)

  • name: String β€” group name
  • pull: true|false|'clone'|function β€” ability to move from the list. clone β€” copy the item, rather than move.
  • put: true|false|["foo", "bar"]|function β€” whether elements can be added from other lists, or an array of group names from which elements can be taken.
  • revertClone: boolean β€” revert cloned element to initial position after moving to a another list.

element option

To drag elements from one list into another, both lists must have the same group value. You can also define whether lists can give away, give and keep a copy (clone), and receive elements., (*11)

  • name: String β€” group name
  • pull: true|false|'clone'|function β€” ability to move from the list. clone β€” copy the item, rather than move.
  • put: true|false|["foo", "bar"]|function β€” whether elements can be added from other lists, or an array of group names from which elements can be taken.
  • revertClone: boolean β€” revert cloned element to initial position after moving to a another list.

volume option

To drag elements from one list into another, both lists must have the same group value. You can also define whether lists can give away, give and keep a copy (clone), and receive elements., (*12)

  • name: String β€” group name
  • pull: true|false|'clone'|function β€” ability to move from the list. clone β€” copy the item, rather than move.
  • put: true|false|["foo", "bar"]|function β€” whether elements can be added from other lists, or an array of group names from which elements can be taken.
  • revertClone: boolean β€” revert cloned element to initial position after moving to a another list.

Example Standalone Usage, (*13)

{{ craft.uploadit.uploader({
    id: 'myUid',
    name: 'myFieldName',
    assets: [],
    volume: 'myvolume',
    folder: 'my/folder/path',
    preview: 'image',
    transform: 'square',
    themeColour: '#ff00ff',
}) }}

Linkit, (*14)

Example Form Usage, (*15)

{{ craft.uploadit.uploader({
    id: 'myUid',
    name: 'myFieldName',
    assets: [],
    field: 'images',
    element: 345678,
    preview: 'image',
    transform: 'square',
    themeColour: '#ff00ff',
}) }}

Linkit, (*16)

Roadmap

  • [ ] Better validation
  • [ ] Translate javascript strings

Note: This plugin will become a paid add-on when the Craft Plugin store becomes available., (*17)

Brought to you by FRUIT, (*18)

The Versions

14/06 2018

dev-develop

dev-develop

Front-end asset upload for fields, volumes and folders.

  Sources   Download

proprietary

The Requires

 

cms craftcms craft-plugin craft front end asset uploader uploadit

23/05 2018

dev-master

9999999-dev

Front-end asset upload for fields, volumes and folders.

  Sources   Download

proprietary

The Requires

 

cms craftcms craft-plugin craft front end asset uploader uploadit

23/05 2018

1.0.6

1.0.6.0

Front-end asset upload for fields, volumes and folders.

  Sources   Download

proprietary

The Requires

 

cms craftcms craft-plugin craft front end asset uploader uploadit

23/05 2018

1.0.5

1.0.5.0

Front-end asset upload for fields, volumes and folders.

  Sources   Download

proprietary

The Requires

 

cms craftcms craft-plugin craft front end asset uploader uploadit

18/05 2018

1.0.4

1.0.4.0

Front-end asset upload for fields, volumes and folders.

  Sources   Download

proprietary

The Requires

 

cms craftcms craft-plugin craft front end asset uploader uploadit

18/05 2018

1.0.3

1.0.3.0

Front-end asset upload for fields, volumes and folders.

  Sources   Download

proprietary

The Requires

 

cms craftcms craft-plugin craft front end asset uploader uploadit

16/05 2018

1.0.2

1.0.2.0

Front-end asset upload for fields, volumes and folders.

  Sources   Download

proprietary

The Requires

 

cms craftcms craft-plugin craft front end asset uploader uploadit

01/05 2018

1.0.1

1.0.1.0

Front-end asset upload for fields, volumes and folders.

  Sources   Download

proprietary

The Requires

 

cms craftcms craft-plugin craft front end asset uploader uploadit

27/04 2018

1.0.0

1.0.0.0

Front-end asset upload for fields, volumes and folders.

  Sources   Download

proprietary

The Requires

 

cms craftcms craft-plugin craft front end asset uploader uploadit

22/03 2018

1.0.0-beta.2

1.0.0.0-beta2

Front end asset upload tools for Craft CMS

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft asset uploader