Skip to main content
BreakawayPaul
Inspiring
January 7, 2013
Answered

cffileupload doesn't seem to be uploading

  • January 7, 2013
  • 1 reply
  • 2217 views

I'm working on building my own photo galllery now that CF has provided this nifty multi-file upload box.  The problem is, I can't seem to get it to do what I want.

My idea for the album is to upload everything to a working folder on my website, then have a script resize them (making thumbnails and main images) before moving them to where they'll actually go.  But right now, I can't get anything to "upload".  Upload is in quotes, because right now, this is all local to my PC.  I'm running CF10/Apache2.2.22/MySQL 5.5.28/Ubuntu 12.10.

Right now, here's what I have on my upload.cfm page:

<cfset session.storage = replace(createUUID(), "-","_","all")>

<cffileupload width="640" extensionfilter="jpg,jpeg,png" url="photomanage.cfm?#urlEncodedFormat(session.urltoken)#" name="photos" />

(The UUID stuff is from Ray Camden's tutorial).

And here's what's in photomanage.cfm:

<cffile action="uploadAll" destination="/var/www/manage/upload" nameconflict="makeunique">

Knowing me, there's probably something obvious that I'm doing wrong, but if I knew what that was, I wouldn't be bugging you guys.

If I can get it to upload files, my next step will be to associate the uploads with a particular album, but if I can't do that on upload, I can always associate them in the next step, so no biggie.

    This topic has been closed for replies.
    Correct answer Tim Cunningham

    Does ColdFusion have write permissions to the /var/www folder?

    1 reply

    Tim Cunningham
    Tim CunninghamCorrect answer
    Participating Frequently
    January 7, 2013

    Does ColdFusion have write permissions to the /var/www folder?

    BreakawayPaul
    Inspiring
    January 7, 2013

    Yes it does, BUT it DIDN'T have  permission to /var/www/upload/ !!!  Stupid me for assuming that new folders I create in a directory assume the permissions of the parent directory.

    Thanks Tim.

    Tim Cunningham
    Participating Frequently
    January 7, 2013

    No problem Paul.. It is always the little things that get us!