Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default CFFILE Acting Funny

    After updating my server to CFMX7, ALL my CFFILE apps stopped working.. the odd
    thing is is FILE.SERVERFILE shows the file name, so it inputs into my database
    the file name you're trying to upload, but the directory is EMPTY! No error
    message, nothing. Just a "thanks FILE.SERVERFILE was uploaded successfully to
    DIRECTORY.

    What would cause Coldfusion to THINK the file was uploaded but not do it? I
    even copied the sample from the livedocs and it still won't work....

    framerate Guest

  2. Similar Questions and Discussions

    1. DES acting strange
      I use the DES_ENCRYPT and DES_DECRYPT with the string 'sfG3853ncr1pt' I can't seem to encrypt the number 227968199 because I tried several times...
    2. fonts acting up
      Hi, I looked in the FAQ, the knowledge base and previous posts but couldn't find an answer for this... I'm trying to open a PDF in CS (on W2K). The...
    3. Scrollbar is acting funny
      Well, actually, I don't know what is acting funny. I'll start from the beginning. I have a file that has a textbox with a vertical scrollbar. I...
    4. IIS on XP Pro Acting Flakey
      <What I think the problem is /> You are opening an implicit ADODB.Connection object. Since you have no handle to this object, you can't dipose of...
    5. trash acting up
      I don't know what caused it but when ever I drag something to the trash can I get a window that says this will delete this file immediately, is...
  3. #2

    Default Re: CFFILE Acting Funny

    I'm not using MX7, so I cannot help you out with that issue, but I think the FILE .. variables are deprecated, so did you try using the CFFILE... variables instead?

    CFFILE.SERVERFILE, etc...

    mxstu Guest

  4. #3

    Default Re: CFFILE Acting Funny

    No that's not it..

    Take a look at this:
    [url]http://www.thedramascene.com/upload.cfm[/url]

    (the CFML is STRAIGHT out of the macromedia livedocs, with my server path
    entered in) I wanted to make a simple 2 part (form and action) form to make
    sure it wasn't my code...

    Try uploading an image and pay attention to the "FILEWASSAVED" and "FILESIZE"
    variable in the cfdump... filesize is 0 and filewassaved is NO even though the
    CLIENT and SERVER both see teh file...

    What is going on?

    framerate Guest

  5. #4

    Default Re: CFFILE Acting Funny

    You're using the Devnet edition -- which might break file upload (the meta tag
    is not friendly to non-html content). Also, the devnet edition is not legal
    for production use.

    The file path looks a little suspicious -- other than that, don't see any
    glaring problems.

    Can you try the developer edition or a licensed version?
    Post your exact code?

    Regards,
    -- MikeR


    MikerRoo Guest

  6. #5

    Default Re: CFFILE Acting Funny

    Interesting... I'm paying for this server, so I never even checked for that
    Devnet tag. Sounds a bit fish to me..

    This is my simple one... same basic code from my other programs... I split it
    into two files just to make sure:
    ============
    FORM
    ============
    <cfform action="upload_do.cfm"
    enctype="multipart/form-data"
    method="post">
    <p>Enter the complete path and filename of the file to upload:
    <input type="file"
    name="FiletoUpload"
    size="45">
    </p>
    <input type="submit"
    value="Upload">
    </cfform>

    =============
    ACTION
    =============
    <cffile action="upload"
    destination="/home/httpd/vhosts/thedramascene.com/httpdocs/"
    nameConflict="error"
    fileField="Form.FiletoUpload">
    <cfdump var="#CFFILE#">
    <cfoutput>
    You uploaded #cffile.ClientFileName#.#cffile.ClientFileExt#
    successfully to #cffile.ServerDirectory#.
    </cfoutput>

    It MUSt be devnet... both my servers I tested on turned out to be devnet
    ones.. I'll have to check around for finding a non dev net version

    Any other ideas?


    framerate Guest

  7. #6

    Default Re: CFFILE Acting Funny

    ... destination="/home/httpd/vhosts/thedramascene.com/httpdocs/" ...

    I guess you're running on unix/linux?
    mxstu Guest

  8. #7

    Default Re: CFFILE Acting Funny

    Yes.. both my servers are on linux.

    To clarify, I have a private development server and then a production server.
    This is all going down on the production server that I pay for. It runs linux
    with CFMX7.

    framerate Guest

  9. #8

    Default Re: CFFILE Acting Funny

    You're code works fine, for me, on a fully registerd CF7 instance and on CF7
    developer -- both on windows machines.
    (Changed the destination attribute and that's it.)

    Lost that link that lists some esoteric devnet restrictions, sorry. But i
    know devnet snafu's XML, so it's easy to believe it would snafu a binary upload.
    Try downloading the free developer addition onto another machine. (Or convert
    that devnet copy to a fully legal one ;-)

    Also, I'm required to ask:
    Any sandbox/resource security in effect?
    Does the account, that CF runs under, have full write access to
    "/home/httpd/vhosts/thedramascene.com/httpdocs/"?

    Regards,
    -- MikeR


    MikerRoo Guest

  10. #9

    Default Re: CFFILE Acting Funny

    Is there a way to convert DevNet back to the 30 day trial or developer edition without reinstalling? My personal machine runs Gentoo and it's a REAL hassle to get it to install properly.
    framerate Guest

  11. #10

    Default Re: CFFILE Acting Funny

    No extra security is in effect and I have full access to the folder.
    framerate Guest

  12. #11

    Default Re: CFFILE Acting Funny

    As for converting back to the trial/developer edition, I don't know. I did a
    very quick search and came up empty. Suggest you start another post on that.
    If you have a paid CF license, you can contact MM for free installation
    support.

    However, there is one thing to be sure about first. You said that you have
    full access to the folder. That doesn't matter unless the CF (and Java/JRun)
    processes run under your login (or root).
    Do the process account(s) have full access?

    Good luck,
    -- MikeR


    MikerRoo Guest

  13. #12

    Default Re: CFFILE Acting Funny

    On my personal server I DO have full access, as do the relevant processes.

    The tests applied here are on a paid server that as far as I know I SHOULD
    have full access...

    Since the problem is occuring on both servers, I assume that this isn't what's
    causing the problem...

    framerate Guest

  14. #13

    Default Re: CFFILE Acting Funny

    Don't know if you found this
    [url]http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=7&thread[/url]
    id=982745&highlight_key=y in your searches. It does not describe the exact
    steps of the resolution, but indicates similar symptoms that were due to
    permission problems as MikeRoo mentioned.

    mxstu Guest

  15. #14

    Default Re: CFFILE Acting Funny

    That's an interesting post... Their directory is near identical to mine and so
    is their problem. I wonder if they had the same host too?

    I'm going to email the hosting people to check on their end... On MY server,
    the folder is owned by "apache:sysadmin" where sysadmin is my group of
    webusers". Permissions are drwxrwxr-x.


    framerate Guest

  16. #15

    Default Re: CFFILE Acting Funny

    I don't know. Too bad they didn't say which permssion settings (coldFusion user or web server user) caused the problem.
    mxstu Guest

  17. #16

    Default Re: CFFILE Acting Funny

    You might temporarily change the permissions to drwxrwxrwx, restart all CF and Apache tasks and then try it.

    If it still doesn't work, then pursue the devnet angle.

    MikerRoo Guest

  18. #17

    Default Re: CFFILE Acting Funny

    AMAZING!

    I did a reinstall on my private server using the 30 day trial, and it STILL
    didn't work (must not be a devnet problem). Then I tweaked my permissions
    settings ala this post for a while, restarted both servers and now CFFILE is
    uploading properly.

    The problem is that my production server, which I pay for is still wrong.
    Meaing their permissions are wrong. Meaning I'm paying money for someone to run
    a server that has less knowledge than I do... Blah.

    Regardless, thanks for the help, gentlemen.

    framerate 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