Skip to content Skip to sidebar Skip to footer

Cffile Alternative, I Need To Upload Without Form Submit

So I want to upload a file to the server using ajax, so the form is not submitted. Cffile requres the filefield attribute, but as there is no form object passed to coldfusion that

Solution 1:

You can use the cffileupload tag (embeds a flash widget for uploading) , or take advantage of XMLHttpRequest level 2 (browser support) via the method explained here.

Solution 2:

Solution 3:

Submit the form to a hidden iframe and handle your form upload as you normally would.

Post a Comment for "Cffile Alternative, I Need To Upload Without Form Submit"