Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/psi-4ward/uploadwidget
Contao-Extension: UploadWidget
https://github.com/psi-4ward/uploadwidget
Last synced: 22 days ago
JSON representation
Contao-Extension: UploadWidget
- Host: GitHub
- URL: https://github.com/psi-4ward/uploadwidget
- Owner: psi-4ward
- Created: 2013-01-24T12:01:47.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-14T13:50:35.000Z (about 11 years ago)
- Last Synced: 2024-12-09T08:47:04.707Z (25 days ago)
- Language: JavaScript
- Size: 225 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
UploadWidget
======================
**Contao 3 Widget for easy uplading files with drag&drop support**Features
----------------------
* Independent Widget, no need to use the fileTree or the database driven filesystem.
* Upload via drag&drop if the browser supports
* Use the ID of the current element in the path
* Images displayed as thumbnails
* Uploaded file gets stored not before the user presses the `save` or `save and close` button**Planed features**
* upload of multiple files
* sync with DB-FS
* cascade deleting of files when the related database-row gets deletedInstallation and Usage
--------------------
Just copy all files in `system/modules/UploadWidget`**DCA-Field example**
```php
'myImage' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_table']['myImage'],
'exclude' => true,
'inputType' => 'UploadWidget',
'eval' => array
(
'path' => 'files/customImages/{{id}}/myImage',
'extensions' => 'png,jpg,gif',
'overwrite' => false,
'mandatory' => true
),
'sql' => "varchar(255) NOT NULL default ''"
),
```### Supported eval-parameters
path
The path to store the files. Use {{id}} to reference the ID of the current record.
extensions
Comma sperated list of valid file-extensions
overwrite
boolean, default: false. Set to true to overwrite existing files with the same name
md5AsFilename
boolean, default: false. Set to true to rename the file to its md5 hash
exactSize
array(intWidth, intHeight). Validates the image for the exact size.
Credits, Licence
----------------------* Uses [Valums Fineuploader](https://github.com/valums/file-uploader).
* Licence: LGPL
* by [4ward.media](http://www.4wardmedia.de)