The image preview doesn't work in Mozilla Firebird 0.7 ....
you could check the file type prior to upload with javascript:
<script language="JavaScript">
<!--//
function loopExt(fileType){
extensions = new Array(".jpg",".jpeg",".pjpeg")
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 = 0; i < extensions.length; i++){
alertTxt += extensions[i] + " "
{
}
}return alertTxt
}
//-->
</script>
<form action="pic_2.cfm" enctype="multipart/form-data" method="post"
onSubmit="return loopExt(this.your_file.value)">
</form>
>Someone had suggested an image preview before uploading... I've added
>that but have to work on the javascript... right now it just dumps the
>file URL into an iframe ... I think I'd want to restrict that to image
>types .. I'm too lazy to write the javascript to determine the file
>extension though right now, maybe later today =)
>
>The image preview, and the clickable icons are implemented in my
>demonstration site..
>
>I think a future version making this database capable would be kinda
>cool... sometime after release 1.0 =)
>
>Thanks for all your comments and suggestions!
>
>http://www.webworksllc.com/cffm/
>
> - Rick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - CFDynamics
http://www.cfdynamics.com
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186054
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54