I had the same problem, it's ain't possible.
What I used is to open a window indicating
only .jpeg or .gif is allowed and then used a javascript
to check what file was inserted in the formfield (before
uploading, not after): take a look:

<script>
extensions = new Array(".JPG",".GIF",".gif",".jpg")
function allowedExt(fileType){
 var extension = fileType.substring(fileType.length-4, fileType.length)
 for (var i = 0; i < extensions.length; i++) {
   if (extension == extensions[i]) {
    return true
    break
  }
 }alert(errorMsg()); return false
}

function errorMsg(){
  alertTxt = "Please select one of the following file types: \n\r"
  for (var i = 2; i < extensions.length; i++){
   alertTxt += extensions[i] + " "
    {
  }
 }return alertTxt
}


Hope this helps.

Bye.

Michael Lugassy
Interactive Music Ltd.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to