QD_GetDroppableFileExtensions
QD_GetDroppableFileExtensions(areaRef; areaRef):error | |||
---|---|---|---|
![]() |
areaRef | Longint | Area reference |
![]() |
fileExtensions | Array text | Droppable file name extensions |
![]() |
error | Longint | Error result |
Get the file extensions accepted by a QDrop area
Parameter areaRef is the reference to the plug-in area.
Parameter fileTypes is a text array that receives the file extensions accepted by the area.
In addition to standard file extensions, such as "txt" and "jpg", QDrop may also use magic file types that provide extra matching criteria.
qd_anyFileMagic | "any*" | Accept any file |
qd_folderMagic | "dir*" | Accept folders |
qd_QTImageMagic | "qti*" | Accept image files supported by QuickTime |
qd_QTMovieMagic | "qtm*" | Accept movie files supported by QuickTime |
WARNING QT magic types will not work on Windows, unless QuickTime is installed on the machine.
Example
// Retrieve file extensions C_LONGINT($error) ARRAY TEXT($fileExtensions;0) $error:=QD_GetDroppableFileExtensions(xDrop;$fileExtensions)
Related commands
QD_SetDroppableFileExtensions | Configure a QDrop area to accept specific file extensions |