static String getExtFormUrl(String fileurl) { String extension = fileurl.split('.').last; if (extension.contains('?')) { extension = extension.split('?')[0]; } return extension; }