【发布时间】:2019-09-24 19:30:33
【问题描述】:
在这里,我正在尝试获取选定的图像文件夹路径或文件路径(无论你怎么称呼它)但无法做到, 请任何人都可以帮助我解决这个问题,我如何获取 /access 文件路径以及选定的图像。
<input id="custom-input" type="file" (change)="handleFiles($event)" multiple >
handleFiles = function (fileInput: Event) {
const files = Array.from(fileInput.target['files']);
this.convertImageToBase64(files, []);
}
非常感谢您的帮助。 提前致谢!
【问题讨论】:
-
也许这个问题会对你有所帮助stackoverflow.com/questions/50482814/…
-
感谢您的回复,但我的问题与提供的链接略有不同,我不想在上传之前预览,只想获取选定的图像文件路径。