Professional Web Applications Themes

CFHTTP Put Method - Coldfusion - Advanced Techniques

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 ...

  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. #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

  3. #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

  4. #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

Similar Threads

  1. CFHTTP
    By cfmichael in forum Macromedia ColdFusion
    Replies: 19
    Last Post: January 5th, 11:10 AM
  2. Replies: 2
    Last Post: March 15th, 09:59 AM
  3. CFHTTP help
    By al_galiza in forum Macromedia ColdFusion
    Replies: 4
    Last Post: September 24th, 06:01 AM
  4. CFHTTP get method on SSL page
    By GiGi05 in forum Coldfusion - Advanced Techniques
    Replies: 1
    Last Post: July 19th, 08:31 PM
  5. CFHTTP Issue
    By vik16 in forum Macromedia ColdFusion
    Replies: 2
    Last Post: March 11th, 08:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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