Like http://www.youku.com/v1.0.0326/v/swf/up.swf
This is Youku's video upload option. It does not display non-video files through FLASH.
The FLASH effect is generally described here.
Copy codeThe Code is as follows:
Import flash.net. FileReferenceList;
Var fileRef: FileReferenceList = new FileReferenceList ();
Var allTypes: Array = [];
Var browsing type: Object = new Object ();
Browsing type. description = "browsing type (*. mp3 )";
Browsing type. extension = "*. mp3 ";
AllTypes. push (browsing type );
FileRef. browse (allTypes );
Therefore, can we limit the File type in the pop-up window for our webpage <input type = "File">?
The solution is to use monitoring to remind users that the format of uploaded files is incorrect.
<Input type = file name = path onpropertychange = "check ()"> (only JPG or GIF images can be uploaded)
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
However, this effect is obviously not as good as the FLASH user experience. It is necessary to pay attention to this type of FLASH upload.