troubleshooting Question

Get contentType for Flex FileReference upload?

Avatar of the_cyman
the_cyman asked on
Adobe FlashApache Flex
2 Comments2 Solutions2200 ViewsLast Modified:
Hi there,

I'm trying to make an image upload in flex, which, once uploaded, is sent to Amazon S3.
But, I need to know the MIME content type of the file.

For PCs, I can just check the file extension, but what about Macs? I know it's an image, but I don't know if it is gif, jpeg, etc.

I can't get Flex (on the client side) to determine the content type of the file reference. How can I do this?

I've seen this:
But again it relies on filename extensions, not available on Mac, I tihnk. (I don't have one.)
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros