Lingo Dictionary > L-N > netMIME() |
![]() ![]() ![]() |
netMIME()
Syntax
netMIME()
Description
Function; provides the MIME type of the Internet file that the last network operation returned (the most recently downloaded HTTP or FTP item).
The netMIME
function can be called only after netDone
and netError
report that the operation is complete and successful. After the next operation starts, the Director movie or projector discards the results of the previous operation to conserve memory.
Example
This handler checks the MIME type of an item downloaded from the Internet and responds accordingly:
on checkNetOperation theURL if netDone (theURL) then set myMimeType = netMIME() case myMimeType of "image/jpeg": go frame "jpeg info" "image/gif": go frame "gif info" "application/x-director": goToNetMovie theURL "text/html": goToNetPage theURL otherwise: alert "Please choose a different item." end case else go the frame end if end
See also
netDone()
, netError(), getNetText()
, postNetText
, preloadNetThing()
![]() ![]() ![]() |