Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
ASP Uploader
»
Re: How to validate a file being uploaded across a SQL db?
Re: How to validate a file being uploaded across a SQL db?
12-31-2012, 11:18 AM
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: How to validate a file being uploaded across a SQL db?
Reply
Quote
Hi,
<script>
function
CuteWebUI_AjaxUploader_OnSelect(files) {
for
(
var
i = 0; i < files.length; i++) {
var
name = files[i].FileName;
var
extension=files[i].FileName.substring(files[i].FileName.lastIndexOf(
"."
));
var
nameNoExtension=files[i].FileName.substring(0,files[i].FileName.lastIndexOf(
"."
));
alert(extension);
alert(nameNoExtension);
}
}
</script>
Regards,
Ken
View Complete Thread