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

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

formula - R: how to pass in a reference to the variable in glm or lm? -