Commit Graph

22 Commits

Author SHA1 Message Date
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