GetContainerAttribute ใช้กับ Field ที่เป็น Container โดยตรง ตัวมันเองมีหน้าที่ในการอ่านรายละเอียดของ file ที่บรรจุอยู่ใน Filed Container ออกมา ถามว่าเอาไปใช้ประโยชน์อะไรได้ ก็แล้วแต่ว่าเราต้องการอ่านค่าอะไร เช่นป้องกันไม่ให้ file ที่มีขนาดใหญ่เข้ามาสู่ระบบก็ได้ โดยการตรวจสอบขนาดของ file
ซึ่งรายละเอียดทั้งหมดที่เราสามารถดึงออกมาดูได้ ก็มีดังนี้
- filename
- MD5
- storageType
- fileSize
- externalSize
- externalFiles
Images
- width
- height
- dpiWidth
- dpiHeight
- transparency
Photos
Only JPEG and TIFF files return results.
- orientation
- created
- modified
- latitude
- longitude
- make
- model
Audio
Note Only MP3 and M4A files return results.
- title
- artist
- album
- year
- track
- genre
- composer
- coverArt
- duration
- bitRate
Bar Codes
- barcodeText
- barcodeType
Signatures
- signed
Groups
- general
- audio
- image
- photo
- barcode
- signature
- all
วิธีใช้งานก็ลองดูจาก Video นะครับ