简体   繁体   English

如何请求以前上传的文件 | JavaScript 文件阅读器

[英]How to request a previously uploaded file | JavaScript FileReader

I'm working on a web app that allows users to edit images/videos.我正在开发一个允许用户编辑图像/视频的网络应用程序。 I want the user to be able to save their work, and resume it again at a later time.我希望用户能够保存他们的工作,并在以后再次恢复。

Instead of copying over whatever file the user is editing into local storage, I'd like to do as most video editing programs and save a 'reference' to that file (ie: the system path), and reload it later.我不想将用户正在编辑的任何文件复制到本地存储中,而是像大多数视频编辑程序一样执行并保存对该文件的“引用”(即:系统路径),然后再重新加载。

If the file is deleted/moved the 'reference' will be broken, and I can handle the error in my app.如果文件被删除/移动,“引用”将被破坏,我可以在我的应用程序中处理错误。

Problem is I can't find a way to do this reading through the FileReader API .问题是我找不到通过FileReader API 进行读取的方法。 Is this possible?这可能吗?

不,没有 API 可以实现这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM