That sounds a bit dangerous... what if the user has popups blocked
(like me)? Does that mean the file won't upload? I also think it can't
be done...

Why don't you upload it in the main window, and then pop up a
confirmation saying "Upload of file: #blah# successful." You could
pass #blah# in a URL parameter.

bye!


Monday, February 2, 2004, 11:38:53 AM, you wrote:

PM> Hello

PM> I'd like to use a pop up window when using cfile with upload. My current
PM> code is below. I'd like "TestActionpage.cfm" come up as a pop up window.

PM> file name: "TestFileUploadForm.cfm"

PM> <form name="form" action="TestActionpage.cfm" method="post"
PM> enctype="multipart/form-data">
PM> <p>Choose the file you would like to upload to unauthorised:</p>
PM> <input type="file" name="File" id="File" size="30" />
PM> <input name="upload" id="upload" type="submit" value="Upload" onClick="" />
PM> </form>

PM> file name: "TestActionpage.cfm"

PM>  <cffile action="upload"
PM>   destination="#ExpandPath(".")#\custfile\holding"
PM>   nameConflict="skip"
PM>   fileField="Form.file">
PM>  <cfoutput>
PM>  Upload of file: #cffile.serverfile# successful.
PM>  #ExpandPath(".")#\custfile\unauthorised
PM>  </cfoutput>

PM> Thanks

PM> Peter Mount
PM> [EMAIL PROTECTED]


PM> ---
PM> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
PM> To unsubscribe send a blank email to [EMAIL PROTECTED]

PM> MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
PM> http://www.mxdu.com/ + 24-25 February, 2004


-----------------------
Ryan Sabir
Newgency Pty Ltd
2a Broughton St
Paddington 2021
Sydney, Australia
Ph (02) 9331 2133
Fax (02) 9331 5199
Mobile: 0411 512 454
http://www.newgency.com/index.cfm?referer=rysig 


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to