Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default CFHTTP Put Method

    Scenario is one in which I am moving image files from a local laptop running CF
    Developer Server to a centralized CF Enterprise server. Have been utilizing
    FTP to move these files with no problem but recently Fortune 500 client decided
    too much security risk and wants to close FTP port. Appears that CFHTTP is
    appropriate replacement as files are not submitted through a form in which case
    CFFILE would be the appropriate tag but are identified by looping through and
    implementation of CFDirectory tag.

    Has anyone been able to utilize CFHTTP to put files onto remote server? Below
    is sample of existing code that runs with no error but does not move the file:

    <cfhttp method="put" url="http://oktst6.thefloorteam.com/field_service/"
    path="c:\cfusionmx\wwwroot\photoupload\" multipart="Yes">
    <cfhttpparam type="file" name="712_4412359_1.jpg"
    file="c:\cfusionmx\wwwroot\photoupload\712_4412359 _1.jpg">
    </cfhttp>


    Any help provided would be greatly appreciated as I would prefer to stay in
    pure CF versus utilizing addl Java or ASP.

    Thanks in advance.

    Randy



    tftrandy Guest

  2. Similar Questions and Discussions

    1. CFHTTP
      Hello, I need to send data from a CF page to an asp.net page for processing via a URL string. The ASP page takes three parameters. Those being...
    2. Is creationComplete=method() or initialize=method() theright solution for such kind of problem or ...?
      Hi everybody, I am using web service in my flex application and I want to visualize some data from collection of objects taht I receive from my Web...
    3. CFHTTP get method on SSL page
      Hi All, I'm using cfthttp tag to get xml data from a secure link. This tag is works fine with the regular page (http page) but it doesn't work with...
    4. CFHTTP help/clarification
      Hello, I am using CFHTTP for the first time in this manner. What I am trying to do is take a 3rd party web sites form processing (a vendor we have a...
    5. CFHTTP help
      We have an in-house built publication system that creates .htm files from database content. For a specific project, I need to modify the way that...
  3. #2

    Default Re: CFHTTP Put Method

    The target server must be configured to accept "PUT" requests. Usually, it is
    disabled.

    Since your target server runs CF, it looks like in your case, CFFILE should
    work. You just need to write a small CF program to handle uploads.


    Mr Black Guest

  4. #3

    Default Re: CFHTTP Put Method

    I have used CFFile extensively to move more than 12000 photos per day from
    field personnel to server. The issue that exists now is that I need to sweep a
    directory of photos from a laptop running cfserver to the central enterprise cf
    server. FTP is the way to do this but apparently client is going to block the
    protocol. I have googled till I am blind, relative to utilizing remote server
    paths versus absolute paths with CFFile. This has forced me to look at CFHttp
    put method which again I have been able to run with no errors but neither does
    file move.

    If you have any suggestions to making this work it would be very helpful.

    tftrandy Guest

  5. #4

    Default Re: CFHTTP Put Method

    Hello, Was a solution to your problem ever found? I have a similar issue with needing to movie files with no FTP available. Thanks.
    travmak Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139