Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
362 views
in Technique[技术] by (71.8m points)

javascript - 如何在不使用DataTransfer()的情况下创建新的FileList对象(How to create a new FileList object without using DataTransfer())

I am creating an image uploader with image preview and the user can cancel/delete any image before submitting the form.

(我正在创建带有图像预览的图像上传器,用户可以在提交表单之前取消/删除任何图像。)

The problem is we can not modify the FileList() object till now without using the DataTransfer() .

(问题在于,直到现在,如果不使用DataTransfer()我们就无法修改FileList()对象。)

Unfortunately, DataTransfer() is not supported in iOS.

(不幸的是,iOS不支持DataTransfer()。)

Just because of the DataTransfer() many existing plugins can not be used in production as we can not ignore iOS.

(仅仅由于DataTransfer()许多现有插件无法在生产中使用,因为我们不能忽略iOS。)

Is there any other way that I am missing to consider?

(还有其他我想不到的方式吗?)

Thank You.

(谢谢。)

  ask by inrsaurabh translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.8k users

...