input type=file customisation

  • Thread starter Thread starter Ersin Gençtürk
  • Start date Start date
E

Ersin Gençtürk

hi ,

I need to customize <input type=file , tag.

I find a way to do that : on the client side by javascript and css first , I
am hiding the fileupload object , then I am calling the click event of
fileupload object.This opens the select files dialog box of file upload and
user will be able to select the file that he wants to upload.But it seems
that internet explorer does not allow uploading files selected by using this
method.Because when the user clicks submit button.It resets the selected
filename in the file upload tag.But I know that it works (for example
google's new mail service : gmail works like this) what am I missed ? is
anybody knows how to do this ?
 
Ersin Gençtürk said:
hi ,

I need to customize <input type=file , tag.

I find a way to do that : on the client side by javascript and css first ,
I
am hiding the fileupload object , then I am calling the click event of
fileupload object.This opens the select files dialog box of file upload
and
user will be able to select the file that he wants to upload.But it seems
that internet explorer does not allow uploading files selected by using
this
method.Because when the user clicks submit button.It resets the selected
filename in the file upload tag.But I know that it works (for example
google's new mail service : gmail works like this) what am I missed ? is
anybody knows how to do this ?
Can't you examine Google's code then? File upload is subject to a lot of
restrictions to prevent any chance of uploading a file without the user's
full knowledge and permissions.
 
Back
Top