ruby on rails - How to detect extension of image without extension? -
my situation: have application, based on rubyonrails. use carrierwave images uploading.
i have many files saved without extensions mistakenly. so, of these have content_type empty value
is there way restore extensions these images?
thanks
you might have infer file signatures: http://en.wikipedia.org/wiki/list_of_file_signatures
Comments
Post a Comment