{"id":17686445,"url":"https://github.com/psi-4ward/uploadwidget","last_synced_at":"2025-03-30T20:47:24.747Z","repository":{"id":6555312,"uuid":"7797032","full_name":"psi-4ward/UploadWidget","owner":"psi-4ward","description":"Contao-Extension: UploadWidget","archived":false,"fork":false,"pushed_at":"2013-11-14T13:50:35.000Z","size":230,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T00:07:37.777Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/psi-4ward.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-24T12:01:47.000Z","updated_at":"2013-11-14T13:50:38.000Z","dependencies_parsed_at":"2022-09-03T14:23:05.973Z","dependency_job_id":null,"html_url":"https://github.com/psi-4ward/UploadWidget","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psi-4ward%2FUploadWidget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psi-4ward%2FUploadWidget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psi-4ward%2FUploadWidget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psi-4ward%2FUploadWidget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psi-4ward","download_url":"https://codeload.github.com/psi-4ward/UploadWidget/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246379385,"owners_count":20767696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-24T10:44:55.849Z","updated_at":"2025-03-30T20:47:24.723Z","avatar_url":"https://github.com/psi-4ward.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"UploadWidget\n======================\n**Contao 3 Widget for easy uplading files with drag\u0026drop support**\n\n\nFeatures\n----------------------\n* Independent Widget, no need to use the fileTree or the database driven filesystem.\n* Upload via drag\u0026drop if the browser supports\n* Use the ID of the current element in the path\n* Images displayed as thumbnails\n* Uploaded file gets stored not before the user presses the `save` or `save and close` button\n\n**Planed features**\n\n* upload of multiple files\n* sync with DB-FS\n* cascade deleting of files when the related database-row gets deleted\n\nInstallation and Usage\n--------------------\nJust copy all files in `system/modules/UploadWidget`\n\n**DCA-Field example**\n```php\n'myImage' =\u003e array\n(\n\t'label'\t\t\t\t\t\t=\u003e \u0026$GLOBALS['TL_LANG']['tl_table']['myImage'],\n\t'exclude'\t\t\t\t\t=\u003e true,\n\t'inputType'\t\t\t\t\t=\u003e 'UploadWidget',\n\t'eval'\t\t\t\t\t\t=\u003e array\n\t(\n\t\t'path'\t\t\t=\u003e 'files/customImages/{{id}}/myImage',\n\t\t'extensions'\t=\u003e 'png,jpg,gif',\n        'overwrite'\t\t=\u003e false,\n\t\t'mandatory'\t\t=\u003e true\n\t),\n\t'sql'\t\t\t\t\t\t=\u003e \"varchar(255) NOT NULL default ''\"\n),\n```\n\n### Supported eval-parameters\n\n\u003ctable border=\"1\"\u003e\n\t\u003ctr\u003e\n    \t\u003cth width=\"100\" align=\"left\"\u003epath\u003c/th\u003e\n        \u003ctd\u003eThe path to store the files. \u003ci\u003eUse {{id}} to reference the ID of the current record.\u003c/i\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n    \t\u003cth align=\"left\"\u003eextensions\u003c/th\u003e\n        \u003ctd\u003eComma sperated list of valid file-extensions\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n    \t\u003cth align=\"left\"\u003eoverwrite\u003c/th\u003e\n        \u003ctd\u003eboolean, default: \u003ci\u003efalse\u003c/i\u003e. Set to \u003ci\u003etrue\u003c/i\u003e to overwrite existing files with the same name\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n    \t\u003cth align=\"left\"\u003emd5AsFilename\u003c/th\u003e\n        \u003ctd\u003eboolean, default: \u003ci\u003efalse\u003c/i\u003e. Set to \u003ci\u003etrue\u003c/i\u003e to rename the file to its md5 hash\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n    \t\u003cth align=\"left\"\u003eexactSize\u003c/th\u003e\n        \u003ctd\u003earray(intWidth, intHeight). Validates the image for the exact size.\u003c/td\u003e\n    \u003c/tr\u003e\n\n\u003c/table\u003e\n\n\nCredits, Licence\n----------------------\n\n* Uses [Valums Fineuploader](https://github.com/valums/file-uploader).\n* Licence: LGPL\n* by [4ward.media](http://www.4wardmedia.de)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsi-4ward%2Fuploadwidget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsi-4ward%2Fuploadwidget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsi-4ward%2Fuploadwidget/lists"}