LocalFile Field Type Format not working
See original GitHub issueimage: { type: Types.LocalFile,dest: '/home/veda/ks/public/img', prefix: '/img',
format: function(item, file){
return '<img src="/img/'+file.path.replace('/home/ks/admin/public/img','')+'/'+file.filename+'" style="max-width: 200px"\>';
}
},
It show an image on keystone version 0.2.36 but when I update to keystone 0.2.40 it show file name instead.
Issue Analytics
- State:
- Created 9 years ago
- Comments:20 (9 by maintainers)
Top Results From Across the Web
[gatsby-source-wordpress] Cannot query field "localFile" on ...
We are trying to query acf/featured_image images from wordpress and following the image processing example, we are getting this error: ...
Read more >localfile - Local configuration (ossec.conf)
Used for Microsoft Windows event logs, returns the events in JSON format. Monitors every channel specified in the configuration file and shows every...
Read more >How to assign a local file to the FileField in Django?
Anyway Django's file type works like a decorator, so you can simply wrap it around existing file objects to meet the needs of...
Read more >How to format text fields as local file links in Dynamics CRM ...
AFAIK, there're two appropriate ways to format such data: 1. Using text type 2. Using URL type. The problem is when you paste...
Read more >Local File Source | Sumo Logic Docs
Supported encoding for local file sources ... File contention issues are still possible, however. ... Select Local File for the Source type.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
just want to bring this PR to attention. #2484 i merged it into my fork and everything works as expected.
As noted in earlier comments, the File API has been rewritten using pluggable storage for Keystone 4 (née 0.4).
For more information, see the File Field API documentation and API File and image Uploads Guide in the Keystone 4 documentation.
For specific File adapters, see:
Regards, Stennie