Re: CFFILEUPLOAD total confusion

2012-08-08 Thread aaron mclean

cffile
action=upload
destination=E:\docs\probmgmt\_tempFiles\upload\
nameConflict=overwrite
/

cfset PhysicalPath = GetDirectoryFromPath(GetCurrentTemplatePath())
cf_sanfile action=append file=#PhysicalPath#errorlog.txt 
output=#cffile.clientFile# nameConflict = overwrite

This will dump out a list of your file names to a temp file called 
errorlog.txt. You can see that #cffile.clientFile# will tell you the names of 
your files 1 at a time. Your upload file gets called once for each file


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352066
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CFFILEUPLOAD total confusion

2011-05-03 Thread Che Vilnonis

If you want to go the jQuery route, you could try Uploadify. I recently used
it and had no issues.
http://www.uploadify.com/

Regards, Che 

-Original Message-
From: Gene Godsey [mailto:gene.god...@comcast.net] 
Sent: Tuesday, May 03, 2011 3:21 PM
To: cf-talk
Subject: CFFILEUPLOAD total confusion


I have been on adobe forums,  I have dialogued with Ray Camden and scoured
the web. I will also say that I have been doing CF for a long time but this
one has me stumped. call me dumb but it is what it is.
Here is my index.cfm file:

--
cffileupload  
url=index_action.cfm?#urlEncodedFormat(session.urlToken)# 
progressbar=true 
name=myupload 
width=400 
height=300 
title = UPLOAD MULTIPLE FILES TO PRIVATE FOLDER 
maxuploadsize=200
extensionfilter=*.jpg, *.png, *.flv, *.txt, *.doc, *.docx, *.xls,
*.xlsx *.pdf 
BGCOLOR=##0078AE 
MAXFILESELECT=10 /

--
Here is the action file called: index_action.cfm

--
cffile action=uploadall 
destination=#expandPath('uploads')# 
nameconflict=overwrite 
result=myVar /

cfdump var=#myVar#

cfset str.STATUS = 200
cfset str.MESSAGE = passed
cfoutput#serializeJSON(str)#/cfoutput

--
Well we all know this s a flash application so there is not a postback to
the server. I need the filename of the uploads to be available to me so I
can insert the names into the database via the directory that are in. this
will allow the users of the site to download and read the given files.
My problem is that I do not know how to return the file names so I can
insert them into the given data table. There is no return here. All I can
imagine is there must be some kind of JavaScript the will provide me with
the name so I can insert the names as the files are uploaded to the given
directory.
Question 1: How do I get the application to retrieve and provide the file or
files name(s)?
Question 2: Is this display an actual output or is this .cgi information
that I pull behind the seens?
Question 3: If this is done with jQuery or some kind of JavaScript call is
it possible to get an example to I can replicate it in process?

Thanks in advance.




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344190
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFFILEUPLOAD total confusion

2011-05-03 Thread Michael Grant


 you could try Uploadify


I also used this recently and thought it was great.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344204
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFFILEUPLOAD total confusion

2011-05-03 Thread Raymond Camden

On Tue, May 3, 2011 at 2:21 PM, Gene Godsey gene.god...@comcast.net wrote:
 Question 1: How do I get the application to retrieve and provide the file or 
 files name(s)?

The value, myVar, is an array of file structs. Each struct contains
information about the file upload. Look up the docs for
cffile/action=upload. The data is the same, but action=upload lets you
handle multiple - hence the use of an array. Point is - all the data
is there.

 Question 2: Is this display an actual output or is this .cgi information that 
 I pull behind the seens?

Is that a display? Thie last code block you showed, the one with
uploadall, handles the request sent by the Flash on the front end. It
returns JSON back. So the code on the client gets the JSON, parses it,
and works with it. So it' snot visible per se. It's a bit like a
robot doing a http request for you.

 Question 3: If this is done with jQuery or some kind of JavaScript call is it 
 possible to get an example to I can replicate it in process?

It's all Flash and JS. Not sure what you mean by 'replicate the process' though.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344205
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm