Open openradar-mirror opened 8 years ago
Modified: 2016-08-26T01:17:12.912100
Modified: 2016-08-26T01:17:12.912100
Modified: 2016-08-26T01:17:12.912100
Modified: 2016-08-26T01:17:12.912100
Modified: 2016-08-26T01:17:12.912100
Modified: 2016-08-26T01:17:12.912100
Modified: 2016-08-26T01:17:12.912100
Modified: 2016-08-26T01:17:12.912100
Description
Using a WKWebView/UIWebView with a file input element that allows for multiple selection () doesn't work when selecting videos. This seems to be due to the fact that videos selected this way are not "compressed" and thus not accessible/readable in the same way they are when only selecting a single video.
It works fine with newly recorded videos or when it doesn't allow multiple selection.
Steps to Reproduce: Create an app with a WKWebView/UIWebView and the following HTML
<!DOCTYPE html>
Choose video
Single (works):Multiple (broken):
Expected Results: That the video files would behave like the other file types that can be selected, similar to how it works if only single file selection of a video does.
Actual Results: An unreadable file that cannot be uploaded.
The onerror throws a "ProgressEvent" from the "FileReader" with the following "FileError" with code "1" meaning "NOT_FOUND_ERR". In WkWebView the error code is "4" (NOT_READABLE_ERR) instead of "1"
Same code works fine in a normal iOS Safari web view.
Product Version: 9.3.4 Created: 2016-08-26T01:07:20.202240 Originated: 2016-08-25T00:00:00 Open Radar Link: http://www.openradar.me/28016475