Hi Arun,
Not sure whether google gmail is using jscript to dynamically create input
file element. After some experiements, I managed to get it work on my side.
We need to separate the code and input file element in different Frame,
other wise, we can't access the input file element and dynamically invoke
its "click" method through script. I've attached my demo pages in this
message, you can download it and have a look.
Also, using cross frame scripting is just a trick and it's not recommended
and not guaranteed to work after future security patchs released.
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| X-Tomcat-ID: 48944699
| References: <
[email protected]>
<
[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: (e-mail address removed) (Steven Cheng[MSFT])
| Organization: Microsoft
| Date: Mon, 01 Aug 2005 03:12:06 GMT
| Subject: Re: Multiple File Upload
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
| Message-ID: <
[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
| Lines: 58
| Path: TK2MSFTNGXA01.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet.webcontrols:10197
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hi Arun,
|
| I think Steve's suggestion is reasonable since the client browser will
have
| restricted permission for clientside scirpt to dynamically manipulate the
| html file input element. So the clientside script approach is not quite
| working. Generally if you need powerful fileupload function, it's better
to
| use some rich client control (eg, activex ...).
|
| Thanks,
|
| Steven Cheng
| Microsoft Online Support
|
| Get Secure!
www.microsoft.com/security
| (This posting is provided "AS IS", with no warranties, and confers no
| rights.)
|
|
|
|
|
|
| --------------------
| | From: "Steve C. Orr [MVP, MCSD]" <
[email protected]>
| | References: <
[email protected]>
| | Subject: Re: Multiple File Upload
| | Date: Sat, 30 Jul 2005 17:54:18 -0700
| | Lines: 29
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| | X-RFC2646: Format=Flowed; Original
| | Message-ID: <
[email protected]>
| | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
| | NNTP-Posting-Host: dsl-66-114-148-135.isomedia.com 66.114.148.135
| | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14.phx.gbl
| | Xref: TK2MSFTNGXA01.phx.gbl
| microsoft.public.dotnet.framework.aspnet.webcontrols:10194
| | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
| |
| | The standard File control allows only one file to be specified for
upload.
| | If you need to upload 2 files, then the simplest solution is to have 2
| File
| | controls on the page.
| | There are fancier options, but they generally require thick clients.
Here
| | are some 3rd party options that may help you out:
| |
http://fileup.softartisans.com/fileup-231.aspx
| |
http://fileup.softartisans.com/fileup-131.aspx
| |
| | --
| | I hope this helps,
| | Steve C. Orr, MCSD, MVP
| |
http://SteveOrr.net
| |
| |
| | | | > Hi,
| | >
| | > I want to create multiple file upload control similar to the Gmail
(file
| | > attachment) where page is not posted every time new file is attached.
| | >
| | > Please let me know if it's possible to do using asp.net.
| | >
| | > Thanks and Regards
| | > Arun
| | >
| | >
| |
| |
| |
|
|