Skip to main content
Known Participant
October 13, 2010
Question

how to upload the file in the virtual disk?

  • October 13, 2010
  • 3 replies
  • 3486 views

I have created a virtual drive called Z.But I don't upload file(image).

I could not find how to write the file path.

<cfif len(attributes.background_file)>
<cfset upload_folder =( ".....")">
  <cffile action = "upload"
    fileField = "background_file"
    destination = "#upload_folder#"
    nameConflict = "MakeUnique"
    mode="777">
  <cfset file_name = "#createUUID()#.#cffile.serverfileext#">
  <cffile action="rename" source="#upload_folder##cffile.serverfile#" destination="#upload_folder##file_name#">
   

<cfif isdefined("attributes.old_background")>
  <cf_del_server_file output_file="settings/#attributes.old_background#" output_server="#attributes.old_background_server_id#">
</cfif>
</cfif>

    This topic has been closed for replies.

    3 replies

    Inspiring
    October 22, 2010

    All those who received private messages about this thead are invited to look at this one.  http://forums.adobe.com/thread/742016

    Me too's are welcome, but only if you mean it.

    Community Expert
    October 13, 2010

    First, please stop sending me PMs every time you post a question. I get one email when I receive the question. Getting a second email doesn't do anything except filling my inbox.

    Second, what exactly do you mean by a "virtual drive"? In general, if you create something that you, as a user logged into the server, can see, that doesn't mean that CF can also see it, or can see it the same way. Log in as the CF account, and set it up that way, and see what happens.

    Dave Watts, CTO, Fig Leaf Software

    http://www.figleaf.com/

    http://training.figleaf.com/

    Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on

    GSA Schedule, and provides the highest caliber vendor-authorized

    instruction at our training centers, online, or onsite.

    Dave Watts, Eidolon LLC
    Owainnorth
    Inspiring
    October 13, 2010

    Can you stop sending me PMs asking me to look at your threads please, if I have the time I'll take a look when it suits me.

    Inspiring
    October 13, 2010

    Can you stop sending me PMs asking me to look at your threads please, if I have the time I'll take a look when it suits me.

    I'll add a "me too" to this notion.

    Actually, when I receive a PM like the one I got, it actually disinclines me to look at the issue.

    Just as I said to someone else here recently: if you (not you, Owain, obviously, but the OP) need something sorted urgently, pay someone to do it, or raise a ticket with Adobe.

    I'm happy to help out here, but I will not be rail-roaded into it.

    --

    Adam

    sumeyramrAuthor
    Known Participant
    October 13, 2010

    ok,Excuse me.I thought You may help me.I will not write one more your private message.