Hi, Thank you for reply.
Here is my complete requirement.
a. Having file upload form with capturing of the browse file and drag&drop feature. ( It allows all mime types of files )
b. Uploaded file later can be viewed with Brava viewer.
With this user allows to create a Alias to existing file and upload to the system. With Alias it will allow to view the file.
Basically when user tries to upload a Alias file, it should reject.
document.getElementById('files').addEventListener('change', fileSelect, false);
function fileSelect(event){
var filesSelected;
if(event instanceof MouseEvent){
filesSelected = event.dataTransfer.files
}
else{
filesSelected = event.target.files; // FileList object
}
// Here can't able to differentiate the File object of original and Alias to write condition.
// Looking for solution to identify selected file is a Alias or not, if yes show error message.
}
Hope i explained the problem, looking forward for some suggestion. Thanks in advance.