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

uploading a file

New Here ,
Jul 28, 2008 Jul 28, 2008
All,
Here is my current code:
quote:


<cfif FORM.attachment1 neq "">
<!--- first actually upload the file --->
<cffile action="upload"
filefield="attachment1"
destination="c:\Inetpub\wwwroot\repository\uploads"
nameconflict="Makeunique">
</cfif>


I need to change the dynamic to code that is more easily uploaded to the server. This file is in /data and I want to upload the file to ../repository/uploads. Anyone tell me how to do this? "../repository/uploads/" does not work.
286
Translate
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
LEGEND ,
Jul 28, 2008 Jul 28, 2008
destination="#expandpath('../repository/uploads/')#"

[assumes repository dir is at the same level as the dir of the calling page]

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Translate
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
New Here ,
Jul 28, 2008 Jul 28, 2008
LATEST
Thanks Azadi. that is it.
Translate
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