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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -