Re: Ajax file upload.

2010-09-06 Thread Michael Grant

You have it like this?

CFFORM NAME=foo ACTION=bar.cfc METHOD=POST enctype=multipart/form-data


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336838
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Ajax file upload.

2010-09-06 Thread Steve Sequenzia

No, I have action=formRes.cfm. Then on the formRes.cfm it does a file upload. 
Again, it works with a html form but not with a cfform. should I have the 
action be a .cfc file?

Thanks for the help.

You have it like this?

CFFORM NAME=foo ACTION=bar.cfc METHOD=POST enctype=multipart/form-data 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336840
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Ajax file upload.

2010-09-06 Thread Michael Grant

The name and action are just there as example. What I'm asking is did you
include *enctype=multipart/form-data in your cfform tag?


On Mon, Sep 6, 2010 at 1:39 PM, Steve Sequenzia c...@thinksys.com wrote:


 No, I have action=formRes.cfm. Then on the formRes.cfm it does a file
 upload. Again, it works with a html form but not with a cfform. should I
 have the action be a .cfc file?

 Thanks for the help.

 You have it like this?
 
 CFFORM NAME=foo ACTION=bar.cfc METHOD=POST
 enctype=multipart/form-data

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336841
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Ajax file upload.

2010-09-06 Thread andy matthews

I'm more interested why it has to be cfform? Are you using the validation
for cfform? You know that once your form is finalized, you can just download
the JS that cfform outputs and ditch cfform for production?


andy

-Original Message-
From: Steve Sequenzia [mailto:c...@thinksys.com] 
Sent: Monday, September 06, 2010 12:12 PM
To: cf-talk
Subject: Ajax file upload.


I am trying to make this http://www.webtoolkit.info/ajax-file-upload.html
work in ColdFusion.

I can get it to work as long as I don't make the form a cfform. I need to
make it work with a cfform though.

When I change the form to cfform it just submits to the action page I
created but it loses the ajax functionality.

Any one know how to make it work with cfform?

Thanks 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336842
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Ajax file upload.

2010-09-06 Thread Steve Sequenzia

 I am trying to make this http://www.webtoolkit.info/ajax-file-upload.
 html work in ColdFusion.
 
 I can get it to work as long as I don't make the form a cfform. I need 
 to make it work with a cfform though.
 
 When I change the form to cfform it just submits to the action page I 
 created but it loses the ajax functionality.
 
 Any one know how to make it work with cfform?
 
 Thanks 

Yes, enctype=multipart/form-data is in the cfform 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336844
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm