This PR fixes an issue for the FileUpload type especially for the :image? instance_option,
some file uploading Gems add a query string part to the file/image URL, paperclip for example adds timestamp value to the file's URL and in the current implementation having query string will result in NOT considering the file as an image even when it's an image
coverage: 95.866% (+0.001%) from 95.865% when pulling d209b871ea150f44187cba3f1cd6034da81ca750 on Laith-jalal:fix_file_upload_images_detection_issue into 647347c48de65b49f8f63a767289484599f7b638 on railsadminteam:master.
This PR fixes an issue for the
FileUpload
type especially for the:image?
instance_option, some file uploading Gems add a query string part to the file/image URL,paperclip
for example adds timestamp value to the file's URL and in the current implementation having query string will result in NOT considering the file as an image even when it's an image