We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb8cbcb commit 9fce491Copy full SHA for 9fce491
src/BootstrapBlazor/wwwroot/modules/upload.js
@@ -1,6 +1,5 @@
1
import Data from "./data.js"
2
import EventHandler from "./event-handler.js"
3
-import { readFileAsync } from "./utility.js"
4
5
export function init(id) {
6
const el = document.getElementById(id)
@@ -98,10 +97,7 @@ export async function getPreviewUrl(id, fileName) {
98
97
if (files) {
99
const file = [...files].find(v => v.name === fileName);
100
if (file) {
101
- const data = await readFileAsync(file);
102
- if (data) {
103
- url = URL.createObjectURL(data);
104
- }
+ url = URL.createObjectURL(file);
105
}
106
107
return url;
0 commit comments