v-uploader icon indicating copy to clipboard operation
v-uploader copied to clipboard

how to place Thumbnail using javascript URL.createObjectURL(file);

Open safiullahsarhandi opened this issue 6 years ago • 3 comments

hey there, i'm using this amazing component but i want to place URL.createObjectURL(file); to show fakePath in thumbnail currently its looking for a path from server side but i want to use it in form with couple of fields and want to process it manually that's why i disabled default fine-uploader autoUpload functionlity but unable to override thumbnail placement functionality immediate response will be highly apreciated Thanks 👍

safiullahsarhandi avatar Nov 15 '18 11:11 safiullahsarhandi

URL.createObjectURL() look like just an experimental api.

TerryZ avatar Nov 15 '18 13:11 TerryZ

URL.createObjectURL() look like just an experimental api.

so how to change thumbnail view without waiting for server response is there any way in this component

safiullahsarhandi avatar Nov 16 '18 07:11 safiullahsarhandi

There is only previewImg to set thumbnail view content with server response image so far.

The "Thumbnail" plain text can customize in next release.

btw: Try use BASE64 to encode some image you want, and pass that content to previewImg option.

TerryZ avatar Nov 16 '18 07:11 TerryZ