function
editor_open_FileDialog_Images() {
//------< editor_open_FileDialog_Images()
>------
editor_Remove_all_ImageResize_Divs();
editor_open_FileDialog("Images", ".jpg,.png,.tiff,.jpeg,.bmp,.gif");; //or image/*"
//------</ editor_open_FileDialog_Images()
>------
}
function
editor_open_FileDialog_Videos() {
//------< editor_open_FileDialog_Videos()
>------
editor_open_FileDialog("Videos", ".mp4");; //video/*"
//------</ editor_open_FileDialog_Videos()
>------
}
function editor_open_FileDialog_Files()
{
//------< editor_open_FileDialog_Videos()
>------
editor_open_FileDialog("Files", ".zip,.pdf,.doc?,.dot?,.xls?,.xlt?,.ppt?,.css,.txt,.csv,.cs,.json,.ts,.html,.js,.map,.ico,.user,.cshtml,*.accdb,. flp");; //*"
//------</ editor_open_FileDialog_Videos()
>------
}
function
editor_open_FileDialog(sFileType,sExtensions) {
//------< editor_open_FileDialog() >------
//editor_Remove_all_ImageResize_Divs();
varUpload_Files_Type = sFileType;
var input_Files = document.getElementById("files_input_field");
input_Files.attributes["accept"].value = sExtensions; //".jpg";
input_Files.click(); //*do not debug at this point, debug at this
code-point in browser does not work
//------</
editor_open_FileDialog() >------
}
|