I'm writing a component to upload some files to AWS/S3. How can I detect the content-type of the upload form inputFile or from a Blob of the file in Apex?
What can I use in place of
If I get it from the blob instance of the file (
fileBlob.ContentType) I get this error:
Initial term of field expression must be a concrete SObject: Blob (Line: 273)
What's going on?