Ad
OctoberCMS: How To Change The View Of Uploaded Files For "attachMany" Relation Type?
The default view of the attachMany
relations, tries to show the preview of the file even for non-image files. For example in the following snapshot, october tries to show preview of the pdf
files:
As you can see, the preview fails for pdf files. I need to fix this behavior. How can I override the HTML shown for the uploaded files?
Ad
Answer
Can you post the fields.yaml config for the form? I guess it includes
type: fileupload
mode: image
Mode image
is what tells october to create thumbnails
Ad
source: stackoverflow.com
Related Questions
- → "failed to open stream" error when executing "migrate:make"
- → October CMS Plugin Routes.php not registering
- → OctoberCMS Migrate Table
- → OctoberCMS Rain User plugin not working or redirecting
- → October CMS Custom Mail Layout
- → October CMS - How to correctly route
- → October CMS create a multi select Form field
- → October CMS - Conditionally Load a Different Page
- → How to disable assets combining on development in OctoberCMS
- → October CMS - Radio Button Ajax Click Twice in a Row Causes Content to disappear
- → OctoberCms component: How to display all ID(items) instead of sorting only one ID?
- → In OctoberCMS how do you find the hint path?
- → How to register middlewares in OctoberCMS plugin?
Ad