Commit Graph

38 Commits

Author SHA1 Message Date
Djamil Legato
b51acae26d Ensure page media thumb is properly size on drop 2022-02-04 10:51:37 -08:00
Djamil Legato
152b384e1c Fixed issue uploading non-images media when Resolution setting enabled in Admin (fixes #2172) 2022-02-04 09:50:20 -08:00
Djamil Legato
d610d6ca4b Clean filename before presenting it to error modal 2022-01-21 15:17:09 -08:00
Djamil Legato
eb4d9703db Treat WebP as image when inserting / drag & dropping (fixes #2150) 2021-05-27 13:37:09 -07:00
Djamil Legato
ea64270d9b Include alt text and title for images added to the editor (#2098) 2021-03-18 15:21:53 -07:00
Djamil Legato
8d80d0f75e Fixed unnecessary closing bracket cuasing JS error (fixes #2079) 2021-02-22 09:24:33 -08:00
Djamil Legato
ecc8939e17 Tweaks in handling of uploaded files (#1429) 2021-02-09 10:59:27 -08:00
Djamil Legato
5cc2216185 Upgraded node dependencies to latest version. Improved speed of JS compilation. 2020-11-18 13:36:30 -08:00
Djamil Legato
73fde930a9 Disabled the EXIF library for Dropzone for fixing the orientation as it was getting applied twice (fixes #1923) 2020-07-20 16:47:58 -07:00
Djamil Legato
1ac925b117 Fixed regression with files in admin not allowing types other than images (fixes #1737) 2019-08-21 10:09:18 -07:00
Djamil Legato
b5bf334340 Fixed file form field failing resolution checks in certain circumstances 2019-07-31 16:57:41 -07:00
rotanadan
c1d7ff6e94 Re enable "unset" button and fix for multiple drop zones (#1670)
* Unhide unset button and fix issues with it not working on multiple drop zones.

* add compiled assets

* add yarn, not sure we want this in repo

* remove temporary class

* add admin js compiled asset

* Recompiled JS / CSS

* Updated changelog (fixes #1427, fixes #1670, fixes #1982)
2019-05-08 15:41:51 -07:00
Djamil Legato
2967e4231d Added extra fallback url for removing file 2019-03-04 14:41:09 -08:00
Djamil Legato
beae5e040b Added logic to support custom post data for file upload / file session remove 2019-03-04 13:21:08 -08:00
Djamil Legato
78e073ac95 Better handling of unset in uploaded files (fixes #1427) 2018-11-12 15:21:49 -08:00
Djamil Legato
ac13462b64 Including EXIF JS library in the modules dependencies to fix orientation when uploading images 2018-06-01 12:14:21 -07:00
Djamil Legato
fc8c7a898a Leftover console.log 2018-05-23 10:26:47 -07:00
Djamil Legato
c61cd47d3b Added support for universal media crud 2018-05-09 13:02:02 -07:00
Djamil Legato
d53e5b111f Implemented Resize Media and Resolution ('resizeWidth', 'resizeHeight', 'resizeQuality', 'resolution') 2018-03-25 22:20:05 -07:00
Djamil Legato
a756cc7975 File Field: Implemented support for 'resizeWidth', 'resizeHeight', 'resizeQuality' and updated Dropzone to latest 2018-03-22 14:11:50 -07:00
Ryan Boog
b56ebbe028 Added unset functionality to pagemedia (dropzone) (#1366)
* Added unset functionality to pagemedia (dropzone). Unset removes the file from the page without deleting it from the system.

* Update unset.js for formatting

* Update unset.js. Removed console log and modified JSON parsing for native faster one.

* Updated unset.js. Fixed quote style

* Fixed couple issues with the unset of images

* Merged with latest Admin
2018-03-09 20:06:00 -07:00
Jacob Müller
d3c410caaf Fix Dropzone upload timeout (#1239)
Closes #1238.
2017-10-09 16:14:34 -06:00
Djamil Legato
e54fcbecbb Fixed Video markdown syntax when drag & dropping in the content editor (fixes #1160) 2017-09-25 19:06:52 -07:00
Djamil Legato
dbdd6e2a45 Added info metadata button for preview images. Fixed preview of images 2017-06-21 17:55:33 -07:00
Djamil Legato
7436037440 Fixed issue with removal of file that has been just uploaded and stored in the session 2017-03-13 13:45:15 -07:00
Djamil Legato
7a7cafd707 Force HTML in upload placeholder message 2017-03-13 13:33:36 -07:00
Djamil Legato
d7fc2ca149 Added tooltip language for uploaded file actions 2017-03-10 12:50:13 -08:00
Djamil Legato
ce0cd892f3 Added custom class for file field 2017-03-10 12:43:51 -08:00
Djamil Legato
7513ff8504 Fixed URL for preview of images 2017-03-10 12:41:42 -08:00
Djamil Legato
e618c4126a Tweaked filepicker field to include view icon. Fixed sizes of thumbnails to 200x150 2017-03-10 12:33:45 -08:00
Andy Miller
f361addd60 Feature/admin fragmentation (#856)
* Separated Admin Controller into a generic and extendable Base controller. Added Autoload for properly loading classes

* Implemented custom class loader to force lowercase

* Removed composer autoloader for classes

* Updates

* Ability to pass custom upload URL for files

* Added new onAdminCanSave event for 3rd party plugins

* Moved files upload GC in onOutputGenerated event

* Cleanup

* Moved autoloader so it is always registering

* Fixed onOutputGenerated event location

* Moved `taskRemoveFileFromBlueprint`,  `taskRemoveMedia `, `canEditMedia` methods to admin base controller

* Allow to globally define `blueprint_type` and `file_url_remove` for the file field

* Moved `isMultilang()` into base controller

* Properly generate thumbnails in proportions for file fields

* Simplified execute restrictions with blacklist
2016-11-07 09:54:10 -07:00
Djamil Legato
4da49c487d Reverted 1858eb0268 2016-11-02 10:27:39 -07:00
Djamil Legato
1858eb0268 Fixed files thumbnail size to 150x150 2016-11-01 17:50:03 -07:00
Flavio Copes
ed3a83345c Fix #833 issue with files with accented chars 2016-10-21 17:57:54 +02:00
Djamil Legato
d8e3e20be8 Page media and File field images thumbnail are now properly proportionate and 150x100 2016-10-11 11:24:21 -07:00
Djamil Legato
31b22a322b Fixed issue when reading the file size setting if set to 0 (in Pagemedia and File fields) 2016-09-30 18:18:45 -07:00
Djamil Legato
6b34336599 [WIP] Ajax Files Upload (#748)
* Reworked the `file` field. All files get uploaded via Ajax and are stored upon Save

This improves the Save task tremendously as now there is no longer the need of waiting for the files to finish uploading. Fully backward compatible, `file` field now includes also a `limit` and `filesize` option in the blueprints. The former determines how many files are allowed to be uploaded when in combination with `multiple: true` (default: 10), the latter determines the file size limit (in MB) allowed for each file (default: 5MB)

* Added support for `accept: [‘*’]` to allow any file type

* Minor tweaks in the comments and messages

* Delete any orphan file when discarding the uploaded files session

* Minor optimization

* Fixed issue with `_json` elements where nested fields merging would get stored in an unexpected way

* Potential fix for wrong order of value in Datetime

* Fixed nested fields for files

* Fixed tmp streams

* Minor cleanup

* Update JSON data when removing a file. Implemented task to remove files that haven’t been saved yet, from the flash object session

* Ensure temporary files are deleted when removing un-saved files from the flash object session

* Fixed wrong reference of HTML file field when clicking on the drop zone area to pick a file

* Added JSON template for pages

* fix a CSS issue in page order

* More CSS fixes

* Trigger file field mutation when adding or removing a file

* Recompiled JS

* Removed twig templates that are no longer needed

* Fixed issue with nested header fields in a page, not properly merging data

* [internal] Fixed issue with collections not capable of handling both param and dot notations at the same time

* Reorganized FileField structure to be more consistent with the other fields

* Added support for dynamically created file fields (ie, autoinitialization on new lists items)

* Added translationable strings for file uploads errors

* Added translasions for all Dropzone available strings

* Changed default values
2016-08-29 11:12:09 -07:00
Andy Miller
8cd0279b01 Feature/upload improvements (#617)
* various improvements.. needs cleanup

* more progress - supports deeply nested + pages

* Getting close now!

* more progress!

* some cleanup

* use data[_json] to store page-based upload

* Smarter logic to get nested form fields

* some refactoring/cleanup

* Fixed issue with removing multiple files in pages

* Refactor and support `destination: page@:/images` and `destination: self@` syntax for file fields

* Prettifying the upload field

* Handling Files API to better represent the selected files in the input field

* Better plurarl string

* Fixed harcoded height for input field

* revamped CSS!!!

* `fancy: false` turns off fancy styling

* Create folder if not exists

* Add support for @theme/theme@ destination

* Fixed create directory functionality to take into account resolved paths

* Don't allow @self on page to be uploaded to if not created

* added field languages

* css tweaks

* language integration
2016-05-26 14:49:45 -06:00