Questions tagged [apexinputfile]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
8k views

Uploading an attachment using inputfile tag

I am trying to create a VF page using which I can attach files and save it to notes and attachment object. I am almost close but there is some problem with the code. I am using input file tag to get ...
1
vote
1answer
1k views

Can I access the content-type form a blob/inputFile?

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? req.setHeader('Content-type', ...