How can I preview images in ExtJs ? I mean, I am using FileUploadField and I want to select an image and set a place to show the image selected in my form.
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a limit to how many levels you can nest i
- Laravel Option Select - Default Issue
- How to toggle on Order in ReactJS
- PHP Recursively File Folder Scan Sorted by Modific
You will need to handle file upload field's event to read event and retrieve image as data URL and set it manually to image component.
Here is working code to achieve this with ExtJS 5.x:
Working fiddle: https://fiddle.sencha.com/#view/editor&fiddle/2ds2