• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Cffunction adn cffile upload

Guest
Apr 09, 2007 Apr 09, 2007

Copy link to clipboard

Copied

Hello to everyone !

I have a problem to upload a file with cffunction :

i created a cfc with a function 'upload' :
<cffunction name="upload" access="remote" returntype="void">
<cfargument name="image_big" type="any" required="no">
<cffile action="upload" fileField="#arguments.image_big#" destination = "mylocation" nameConflict="overwrite" accept="image/*">
</cffunction>

but it doesn’t work with out submitting the form .. pleas help ..
thanks !
TOPICS
Advanced techniques

Views

309

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Apr 10, 2007 Apr 10, 2007

Copy link to clipboard

Copied

LATEST
I believe you need to have the file submitted via a form if you want to use the <cffile action="upload" fileField=""> method of cffile. Otherwise, how will the server gain access to the file itself?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation