Commit Graph

33 Commits

Author SHA1 Message Date
webmaxx cc7d595fff Added `maxFilesize` option to the `FileUpload` FormWidget (#4077)
Credit to @webmaxx
2019-07-18 08:48:31 -06:00
Alexander Guth ee8287e598 Add "onUpload" AJAX handler to FileUpload widget (#4311)
Run an AJAX handler on uploading and processing a file as opposed to using a post() data check in the widget initialization, as the widget may initialize several times in certain circumstances - eg. inside a relation widget.

Credit to @alxy. Refs: https://github.com/octobercms/october/issues/4300
2019-05-07 11:44:25 +08:00
Luke Towers 4f0b237aad Use an embedded Form widget to process FileUpload properties
Fixes #2168, #3097. Related: https://github.com/rainlab/translate-plugin/pull/442
2019-04-17 18:48:32 -06:00
Samuel Georges 24c8b4368a Various security and UI fixes
The Media Manager now uses a white list approach to blocking files, we have been advised that the blacklist approach is too fragile and we agree.
Asset List and Media Manager now use $.oc.alert when displaying errors
2017-04-09 08:00:56 +10:00
Prasanth Darsan 6cc50b8ca8 Fixed error on saving attachment config when its put on pivot form of a relation 2016-06-28 23:17:27 +05:30
Samuel Georges 8a7f762c71 Restyle system status report widget
Fixes styling on popover-danger and popover-head with customization
2016-05-28 06:49:59 +10:00
Samuel Georges 51bef96db9 More styling changes and other minor improvements 2016-04-21 04:52:21 +10:00
alekseybobkov a943708b99 UI updates 2016-02-19 22:12:41 -08:00
Samuel Georges b6ba31bd86 Fixes exception on removeChild(null)
Fixes danger on danger color scheme
2015-11-14 18:27:01 +11:00
Samuel Georges 22252638a8 Because W3C 2015-10-16 17:50:53 +11:00
Samuel Georges 906a4e65c2 Prompt can now be used to define the button text for file multi
Minor update to checkbox markup
2015-08-28 04:39:29 +10:00
Samuel Georges 8a4ac533e5 Escape file title - Fixes #1302 2015-07-22 10:41:51 +10:00
Samuel Georges 8a12b2f37f Improve single image uploader 2015-06-30 15:27:26 +10:00
Samuel Georges 3681459935 Fixes styling of upload button in Firefox - Refs #1202 2015-06-27 11:35:55 +10:00
Samuel Georges eb5af8ae85 Improve multilanguage support - Fixes #1228 2015-06-27 09:33:09 +10:00
Samuel Georges c813318729 Added preview mode support to File upload widget
Widget also passes CSRF token
Switched to using a header instead of POST flag
2015-06-25 10:55:46 +10:00
Samuel Georges c2c14e707f Added backend route for protected thumbs, Fixes #1218, thanks @jBOKA
Improved the FileUpload widget code to no longer rely on "pathOverride"
2015-06-20 11:27:03 +10:00
Samuel Georges 94ae0b7cbc Make prompt text configurable 2015-06-13 10:41:00 +10:00
Samuel Georges 6420027a6a Finish single file uploader
FileUpload now supports:
- optional 'useCaption' flag
- imageWidth and imageHeight are now optional
- default file uploader uses default file types
2015-06-10 22:13:24 +10:00
Samuel Georges f95af91ef1 Finish rebuilding multi file uploader
Create stub for single file uploader
2015-06-09 18:51:35 +10:00
Samuel Georges 732679da57 This error doesn't vary at all 2015-06-06 16:54:52 +10:00
Samuel Georges 887b959156 Rebuild image based UI for FileUpload form widget 2015-06-06 16:52:38 +10:00
Samuel Georges 87644166ad Adds internal download link for protected files 2015-04-25 12:53:54 +10:00
Samuel Georges 694a7dfb74 Uploader now supports defining acceptable file types 2015-01-31 15:31:46 +11:00
Adam 04e02727ce Type in oc-icon-paperclip class
Fixed type in oc-icon-paperclip class (from paper-clip to paperclip) which meant that the attachment link wasn't showing in backed.
2014-12-15 11:49:30 +00:00
Sam Georges a9eecfecd5 Remove blueimp uploader, replaced with dropzone.js 2014-10-20 18:55:31 +11:00
Sam Georges c2a71e88bb Clean up some sloppy work 2014-09-12 20:20:52 +10:00
Paul Wilde 1d038d3173 More translation strings. 2014-08-12 01:15:38 +01:00
Miloš Stanić d5f47bb988 Update _image_single.htm
Paperclip icon with a href was not displayed on the already uploaded image, due to error in icon name.
2014-08-04 19:02:48 +02:00
Sam Georges 893f7746f7 Improvements to naming standards 2014-06-30 13:27:28 +10:00
alekseybobkov 0a60255db5 Added the Preview link in to the multi-image uploader / preview mode 2014-05-23 18:59:12 +11:00
alekseybobkov 4a095160cd Added Preview mode for the multi-image file uploader, minor style improvements 2014-05-21 17:51:50 +11:00
Sam Georges 71a5dd67ab Welcome to the world, October :-) 2014-05-14 23:24:20 +10:00