Sign in to follow this  
Followers 0
ter-pierre

Mime Type

5 posts in this topic

Hi guys.

I needs to find (ex.) all mp3 files on my file server to remove it.

My "best" users are renaming the files to prevent it to be removed.

Can I check the mime type to certify the type of those files?

some one knows a way to do?

thanks.

Pierre

Share this post


Link to post
Share on other sites



Hi guys.

I needs to find (ex.) all mp3 files on my file server to remove it.

My "best" users are renaming the files to prevent it to be removed.

Can I check the mime type to certify the type of those files?

some one knows a way to do?

thanks.

Pierre

I know that you are not "downloading" these files via IE, but read this anyway:

Mime Sniffing- (FEATURE_MIME_SNIFFING)- This control enables checks to the signature bits of downloaded files in order to determine the file's type and render it properly.

http://msdn.microsoft.com/library/default....urecontrols.asp

Then take a look at:

FindMimeFromData contains hard-coded tests for (currently 26) separate MIME types.....

http://msdn.microsoft.com/library/default..../appendix_a.asp

Perhaps Dale and the DLL gurus could put together something that would really "help" those "best" users.


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

Hi guys.

I needs to find (ex.) all mp3 files on my file server to remove it.

My "best" users are renaming the files to prevent it to be removed.

Can I check the mime type to certify the type of those files?

some one knows a way to do?

thanks.

Pierre

I think you could be able to filter files by size, 2MB ~ 10MB, then check if file has MP3 tags.

Share this post


Link to post
Share on other sites

vollyman - Yes. Just this.

herewasplato - Thank you. I will take a look.

Joon - MP3 type was just an exemple. I needs to know the true file type of all files.

I have the fullpathname of the file (ex. E:\TMP\XYZ.txt), and needs to know the true file type of this file.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0