RE: CFFILE UPLOAD / Embedding

2009-09-17 Thread Jenny Gavin-Wear

I've had time to do more testing on this.

From what i can tell it's a bug in my IE :/

Also, this is the code I'm using to embed mp3, wma and wmv files.  I'm
streaming them off a Windows Media Server.

WMV and WMA files play on all browsers tested with this code (IE, Firefox,
Chrome). Well, almost.  They play on my pc's IE and not on another's, anyone
have any idea why, please?

Can anyone tell me definitively (I've spent way too much time on this,
arrrgh) whether this is the right code to be using or if there is a better
way (right way)?

OBJECT ID=MediaPlayer WIDTH=319 HEIGHT=284
CLASSID=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95
STANDBY=Loading Windows Media Player components...
TYPE=application/x-oleobject
PARAM NAME=FileName VALUE=mms://#myIP#/MusicDynamics/#stock.media#
PARAM name=ShowControls VALUE=true
param name=ShowStatusBar value=false
PARAM name=ShowDisplay VALUE=false
PARAM name=autostart VALUE=TRUE
EMBED TYPE=application/x-mplayer2
SRC=mms://#mpIP#/MusicDynamics/#stock.media#
NAME=MediaPlayer
pluginspage=http://www.microsoft.com/Windows/MediaPlayer/;
WIDTH=319 HEIGHT=284
ShowControls=1
ShowStatusBar=1
ShowDisplay=0
autostart=1
playcount=1
/EMBED
/OBJECT

Thanks in advance,

Jenny


-Original Message-
From: Will Swain [mailto:w...@hothorse.com]
Sent: 11 September 2009 08:08
To: cf-talk
Subject: RE: CFFILE UPLOAD



Sorry - coming to this late. Have you tried with a different mp3 file? Is it
all mp3 files that don't work, or just this one?

-Original Message-
From: Jenny Gavin-Wear [mailto:jenn...@fasttrackonline.co.uk]
Sent: 11 September 2009 04:49
To: cf-talk
Subject: RE: CFFILE UPLOAD


The MP3 I am uploading is smaller than the WMVs that upload fine ..

-Original Message-
From: Maureen [mailto:mamamaur...@gmail.com]
Sent: 06 September 2009 07:37
To: cf-talk
Subject: Re: CFFILE UPLOAD



Does it exceed max file size for uploads on the server?

On Sat, Sep 5, 2009 at 9:50 PM, Andrew Grosset rushg...@yahoo.com wrote:

 according to this list there are 4 possible mime types for mp3

 http://www.webmaster-toolkit.com/mime-types.shtml

2boogie.mp3

Most file formats work fine (doc, pfd, wmv, for example) and it seems
it's just music files like mp3 and wma that have a problem.

Could it be something to do with the mime type?







~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326378
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CFFILE UPLOAD

2009-09-11 Thread Will Swain

Sorry - coming to this late. Have you tried with a different mp3 file? Is it
all mp3 files that don't work, or just this one?

w 

-Original Message-
From: Jenny Gavin-Wear [mailto:jenn...@fasttrackonline.co.uk] 
Sent: 11 September 2009 04:49
To: cf-talk
Subject: RE: CFFILE UPLOAD


The MP3 I am uploading is smaller than the WMVs that upload fine ..

-Original Message-
From: Maureen [mailto:mamamaur...@gmail.com]
Sent: 06 September 2009 07:37
To: cf-talk
Subject: Re: CFFILE UPLOAD



Does it exceed max file size for uploads on the server?

On Sat, Sep 5, 2009 at 9:50 PM, Andrew Grosset rushg...@yahoo.com wrote:

 according to this list there are 4 possible mime types for mp3

 http://www.webmaster-toolkit.com/mime-types.shtml

2boogie.mp3

Most file formats work fine (doc, pfd, wmv, for example) and it seems 
it's just music files like mp3 and wma that have a problem.

Could it be something to do with the mime type?





~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326217
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CFFILE UPLOAD

2009-09-10 Thread Jenny Gavin-Wear

The MP3 I am uploading is smaller than the WMVs that upload fine ..

-Original Message-
From: Maureen [mailto:mamamaur...@gmail.com]
Sent: 06 September 2009 07:37
To: cf-talk
Subject: Re: CFFILE UPLOAD



Does it exceed max file size for uploads on the server?

On Sat, Sep 5, 2009 at 9:50 PM, Andrew Grosset rushg...@yahoo.com wrote:

 according to this list there are 4 possible mime types for mp3

 http://www.webmaster-toolkit.com/mime-types.shtml

2boogie.mp3

Most file formats work fine (doc, pfd, wmv, for example) and it seems it's
just music files like mp3 and wma that have a problem.

Could it be something to do with the mime type?



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326211
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFFILE UPLOAD

2009-09-06 Thread Maureen

Does it exceed max file size for uploads on the server?

On Sat, Sep 5, 2009 at 9:50 PM, Andrew Grosset rushg...@yahoo.com wrote:

 according to this list there are 4 possible mime types for mp3

 http://www.webmaster-toolkit.com/mime-types.shtml

2boogie.mp3

Most file formats work fine (doc, pfd, wmv, for example) and it seems it's
just music files like mp3 and wma that have a problem.

Could it be something to do with the mime type?

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326049
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CFFILE UPLOAD

2009-09-05 Thread Jenny Gavin-Wear

2boogie.mp3

Most file formats work fine (doc, pfd, wmv, for example) and it seems it's
just music files like mp3 and wma that have a problem.

Could it be something to do with the mime type?



-Original Message-
From: Dave l [mailto:cfl...@jamwerx.com]
Sent: 05 September 2009 02:56
To: cf-talk
Subject: Re: CFFILE UPLOAD



what's the file name?

Seems like I had this one time and the issue was the user was uploading
images named like: bill's big day.jpg
And the ' was terminated it and giving that error.




I'm using cffile to upload .mp3 files (among others).

An error is thrown:
String index out of range: -1

All other file formats I have tried work fine, does anyone know why mp3
would fail?

Thanks,
Jenny



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326046
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFFILE UPLOAD

2009-09-05 Thread Andrew Grosset

according to this list there are 4 possible mime types for mp3

http://www.webmaster-toolkit.com/mime-types.shtml

2boogie.mp3

Most file formats work fine (doc, pfd, wmv, for example) and it seems it's
just music files like mp3 and wma that have a problem.

Could it be something to do with the mime type?


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326048
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFFILE UPLOAD

2009-09-04 Thread Dave l

what's the file name?

Seems like I had this one time and the issue was the user was uploading images 
named like: bill's big day.jpg
And the ' was terminated it and giving that error.




I'm using cffile to upload .mp3 files (among others).

An error is thrown:
String index out of range: -1

All other file formats I have tried work fine, does anyone know why mp3
would fail?

Thanks,
Jenny 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326024
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CFFILE UPLOAD

2009-09-03 Thread Jenny Gavin-Wear

the weird thing is, the file actually uploads, but still the error ...

-Original Message-
From: Jenny Gavin-Wear [mailto:jenn...@fasttrackonline.co.uk]
Sent: 03 September 2009 14:58
To: cf-talk
Subject: CFFILE UPLOAD



I'm using cffile to upload .mp3 files (among others).

An error is thrown:
String index out of range: -1

All other file formats I have tried work fine, does anyone know why mp3
would fail?

Thanks,
Jenny




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325987
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFFILE upload eating up requests / apache configuration

2008-12-05 Thread adrian lynch
Not an answer to your question, but we're expecting large file uploads from 
many users and we've made the upload page like this:

1. Call to CF web service to check credentials.

2. In page CF to check the result of the webservice call

3. Process upload with cffile

4. Pass file data to CF web service to process the file

5. Return some info to the use with some custom CF code

If things don't work out with CF accepting the file we intend to replace points 
2, 3 and 5 with PHP or something else.

We point out clients to upload to a URL like www.domain.com/upload/. Then we 
will replace index.cfm with index.php or index.aspx or index.cgi or whatever if 
needed.

Any thoughts or comments on that setup?

Thanks.

Adrian

 Hi there -
 
 I've a problem with file uploads:
 
 - Users are uploading a lot of files using uploading files
 - Some users have a quite slow internet connection so uploading takes 
 quite a white
 - I can see in FusionReactor that every upload eats one ColdFusion 
 process waiting for the upload to be finished and thereafter continues 
 with processing the data
 - We frequently run out of processes (set in CFAdmin) because e.g. 10 
 users are uploading files at a low rate. I don't want to set the 
 request limit up to e.g. 50 because the handling of such amounts of 
 real requests would knock down the server.
 
 Questions:
 
 - Is there a possibility to modify the apache config that the 
 coldFusion process is created AFTER all POST data is available?
 - Any workarounds (I already thought about moving to php for file 
 uploads ...)
 
 Best regards,
 
 -- Hansjoerg 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316322
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cffile upload temporary folder changes

2008-06-25 Thread denstar
On Tue, Jun 24, 2008 at 11:42 PM, James Holmes wrote:
 As we're lucky enough that it's only happened in dev and test and not
 prod (yet) I'm waiting until we change to our new CF8 architecture
 before expending any effort. If it happens in prod I'll just make
 /var/tmp writeable for the CF user.

 I still win the list :P

Hmmm... I dunno -- if it's not happening in production, I'm not sure
it qualifies as a /true/ CF-TALK question.  ;-]

Seriously, it sounds like the system temp folder is leaking in
(duh;]), so just be sure that what leaks in, is the same as what's
already in there...

-- 
Well, if crime fighters fight crime and fire fighters fight fire, what
do freedom fighters fight? They never mention that part to us, do
they?
George Carlin

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308156
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cffile upload temporary folder changes

2008-06-24 Thread denstar
On Sun, Jun 22, 2008 at 9:39 PM, James Holmes wrote:
 I knew this would be a stumper. I win the list!

Patience, grasshopper, the list is not always fast like the rabbit.  :-)

You tried setting environment variables and whatnot?  Passing JVM
arguments in there?

Cover all the bases, and I bet it goes away.

Not that I'm actually betting you, though.  You may have already tried
everything, see.  =]

-- 
It's never just a game when you're winning.
George Carlin

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308090
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cffile upload temporary folder changes

2008-06-24 Thread James Holmes
As we're lucky enough that it's only happened in dev and test and not
prod (yet) I'm waiting until we change to our new CF8 architecture
before expending any effort. If it happens in prod I'll just make
/var/tmp writeable for the CF user.

I still win the list :P

On Wed, Jun 25, 2008 at 12:59 PM, denstar [EMAIL PROTECTED] wrote:
 On Sun, Jun 22, 2008 at 9:39 PM, James Holmes wrote:
 I knew this would be a stumper. I win the list!

 Patience, grasshopper, the list is not always fast like the rabbit.  :-)

 You tried setting environment variables and whatnot?  Passing JVM
 arguments in there?

 Cover all the bases, and I bet it goes away.

 Not that I'm actually betting you, though.  You may have already tried
 everything, see.  =]

-- 
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308092
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cffile upload temporary folder changes

2008-06-22 Thread James Holmes
I knew this would be a stumper. I win the list!

On Wed, Jun 11, 2008 at 12:34 PM, James Holmes [EMAIL PROTECTED] wrote:
 I predict this is another stumper.

 Occasionally, on one of our servers, the temporary folder into which
 cffile uploads go before they are moved to the final location changes
 from the correct
 cf_root/runtime/servers/coldfusion/SERVER-INF/temp/wwwroot-tmp/ to
 /var/tmp.

 Has anyone else experienced this and solved it?

 We're on Solaris / CF7.02 Ent / Apache 2.

-- 
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307949
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cffile upload issue

2007-11-15 Thread morgan l
Or CFIF IsDefined(form.update.x) if you are trying to check that
the submit image was clicked.

On Nov 15, 2007 10:53 AM, Brian McCairn [EMAIL PROTECTED] wrote:
 Where you say

 CFIF IsDefined(form.upload.x)

 I think should just be

 CFIF IsDefined(form.upload)

 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293417
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cffile upload issue

2007-11-15 Thread Brian McCairn
Where you say 

CFIF IsDefined(form.upload.x)

I think should just be

CFIF IsDefined(form.upload) 

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293404
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: cffile upload issue

2007-11-15 Thread Orlini, Robert
Seems to work...

Thanks Brian.

-Original Message-
From: Brian McCairn [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 15, 2007 11:53 AM
To: CF-Talk
Subject: Re: cffile upload issue


Where you say 

CFIF IsDefined(form.upload.x)

I think should just be

CFIF IsDefined(form.upload) 



~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293414
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFFILE - Upload and rename at the same time?

2007-01-03 Thread Doug Brown
Would need to be two seperate actions.

IE:

 CFFILE action=upload filefield=yourFileField accept=type
destination=C:\myFolder\ nameconflict=makeunique
  CFSET RenameFile = Whatever
  CFFILE action=rename source=C:\myFolder\#File.ServerFile#
destination=C:\myFolder\#Trim(RenamePhoto)#

Doug B.


~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265583
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CFFILE - Upload and rename at the same time?

2007-01-03 Thread Bobby Hartsfield
It would need to be 2 separate cffiles afaik. Most people however, like to
upload files to temp folders, do some processing then move it to its final
home. You CAN move and rename at the same time with one cffile... just give
the destination the new path and file name

-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 03, 2007 6:55 PM
To: CF-Talk
Subject: CFFILE - Upload and rename at the same time?

Is there a way to upload and rename a file at the same time using 
CFFILE, or does that need to be two separate operations?

I'm using a function to filter out spaces and unwanted characters in the 
file names

like:
#filterFilename(cffile.serverfile)#

  - and this works after the fact in a separate cffile operation - but I 
wanted to try and optimize my code a little



~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265594
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CFFILE Upload problems

2006-10-04 Thread Dirk Sieber
Well, managed to actually find the solution to this one - seems our
network folk back east put in a caching proxy that was causing the
problem.  When we excluded the IP address of the server, this went
away at least under IE.

Now I just have to try to figure out why when uploading files under
Firefox, I keep getting a dialogue box that says:
A script on this page may be busy, or may have stopped responding.  You
can stop it, etc...

Interestingly enough, if you hit 'cancel', the process completes, with
the file uploaded. 

 -Original Message-
 From: Jake Churchill [mailto:[EMAIL PROTECTED] 
 Sent: October 3, 2006 1:14 PM
 To: CF-Talk
 Subject: Re: CFFILE Upload problems
 
 I saw this once but the server was out of Hard Drive space. 
 
 Dirk Sieber wrote:
  Hi everyone,
 
  We're still having continuing problems with uploading files 
 to one of our servers using:
  CFFILE ACTION= UPLOAD
 
  and I'm wondering if anyone else has seen this.  Files 
 under about 100k or so are fine - above that, things get 
 erratic, with larger (ie 1MB+) files failing pretty much every time.
 
  We've put a sniffer on the connection, and what we're 
 seeing in the failed attempts is this:
  -A lost segment notification from the client to the server
  -A collection of duplicate ACKs from the server to the client, 
  -Finally, we get:
  HTTP/1.2 500 Internal Server Error
  Server: Microsoft-IIS/5.0
  etc, followed by
  Jrun Servlet Error
  500 unexpected end of part
 
  This is on a Windows 2000 SP4 machine running MX 7
 
  There doesn't seem to be anything in any of the actual CF 
 logs that reflect this error.
 
  Anyone else seen this?  Any ideas??
 
  Thanks,
  Dirk
 
  ~~~ 
  Dirk Sieber 
  ITSB - Public Works  Government Services Canada 
  641 - 800 Burrard Street 
  Vancouver, BC V6Z 2V8 
  *Phone (604) 666-9204 
  * Fax: (604) 666-7482
  *E-mail  [EMAIL PROTECTED]
  ~~~ 
 
 
 
  
 
 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255512
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFFILE Upload problems

2006-10-03 Thread Jake Churchill
I saw this once but the server was out of Hard Drive space. 

Dirk Sieber wrote:
 Hi everyone,

 We're still having continuing problems with uploading files to one of our 
 servers using:
 CFFILE ACTION  = UPLOAD

 and I'm wondering if anyone else has seen this.  Files under about 100k or so 
 are fine - above that, things get erratic, with larger (ie 1MB+) files 
 failing pretty much every time.

 We've put a sniffer on the connection, and what we're seeing in the failed 
 attempts is this:
 -A lost segment notification from the client to the server
 -A collection of duplicate ACKs from the server to the client, 
 -Finally, we get:
 HTTP/1.2 500 Internal Server Error
 Server: Microsoft-IIS/5.0
 etc, followed by
 Jrun Servlet Error
 500 unexpected end of part

 This is on a Windows 2000 SP4 machine running MX 7

 There doesn't seem to be anything in any of the actual CF logs that reflect 
 this error.

 Anyone else seen this?  Any ideas??

 Thanks,
 Dirk

 ~~~ 
 Dirk Sieber 
 ITSB - Public Works  Government Services Canada 
 641 - 800 Burrard Street 
 Vancouver, BC V6Z 2V8 
 *Phone (604) 666-9204 
 * Fax: (604) 666-7482
 *E-mail  [EMAIL PROTECTED]
 ~~~ 



 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255256
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFFILE Upload weirdness

2006-01-10 Thread Dave Carabetta
On 1/10/06, Bud [EMAIL PROTECTED] wrote:
 Hi. One of the strangest things I've seen yet. This happens on one CF
 server running 7,0,1,116466 (a client's) but not mine, running the
 same code and the same version.

 Simple custom tag. Here is the cffile.

 cffile action=upload
 filefield=#filefield#
 destination=#Attributes.directory##attributes.id#
 nameconflict=overwrite
 accept=#accept#

 When uploading a jpg, named test1.jpg (the name on my computer) to a
 file named test2.jpg, CF creates a directory named test2.jpg and
 uploads.

 If I place the following code right after the cffile.

 CFOUTPUT#Attributes.directory##attributes.id#/CFOUTPUTcfexit

 It correctly shows this:

 C:websites\atip\ezcart\products_tn\test2.jpg

 Yet the file it places on the server is this:

 C:websites\atip\ezcart\products_tn\test2.jpg\test1.jpg

 test2.jpg being a directory created during the process.

 #file.serverfile# also shows the name as test1.jpg so it's not
 happening sometime after the initial upload. I've also tried upload a
 file named as it will be on the server, but then I just get
 test2.jpg/test2.jpg.

 I don't get it. Anyone seen this?

While it looks like you're experiencing the issue in this TechNote,
http://www.macromedia.com/go/f97044e, you should make sure that you
have the cumulative updater to Merrimack installed, found here:
http://www.macromedia.com/go/aae43964.

I think that should resolve things. One thing that has changed in MX 7
is that you can't just use the serial number to determine what patch
level you're at. You need to check the Update Level line as well on
the System Information page.

Regards,
Dave.

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229029
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFFILE Upload weirdness

2006-01-10 Thread Bud
dave wrote:

While it looks like you're experiencing the issue in this TechNote,
http://www.macromedia.com/go/f97044e, you should make sure that you
have the cumulative updater to Merrimack installed, found here:
http://www.macromedia.com/go/aae43964.

I think that should resolve things. One thing that has changed in MX 7
is that you can't just use the serial number to determine what patch
level you're at. You need to check the Update Level line as well on
the System Information page.

Yes, I found that after i emailed the list. Thanks. I wish MM would 
quit changing perfectly logical behaviors for stuff that just doesn't 
make sense. :)
-- 

Bud Schneehagen - Tropical Web Creations, Inc.

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Web Based Solutions / eCommerce Development  Hosting
http://www.twcreations.com/ - http://www.cf-ezcart.com/
Toll Free: 877.207.6397 - Local  Int'l Phone/Fax: 386.789.0968

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229097
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cffile upload large files again!

2005-12-07 Thread Dave Carabetta
On 12/7/05, George Abraham [EMAIL PROTECTED] wrote:
 All,
 For uploading multiple files to the server, we use a Java applet which works
 quite well. Now, the sizes of the files could vary. People might upload 10
 files that are 2MB each or 100 files that total about 200MB together.
 Sometime people could even upload about a gig of files if they so liked and
 wanted to wait that long, I expect. Anyway, when I last used cffile for
 upload for large files (using CF 4.5, if you please), there were all sorts
 of crappy issues you had to deal with. Are there still issues with using
 cffile for large files? I recently tested out the app with about 175MB of
 files with the largest file being about 76 MB abd the CF server crapped out
 on me. Looked up the application log and there wasn't one line of log in
 there that said anything significant happened.  Am I better off using the
 FileReader class in Java? Or any other option?


I would absolutely look into alternative solutions to cffile in this
case. Remember, the cffile tag reads the *entire* file into memory (if
it can) and only then does the action request. I'll bet money that
your crap out was an OutOfMemory error at the Java level -- you were
just looking at the wrong log file, which is why you didn't see it. If
you're serious about allowing uploads of the sizes you're talking
about, then streaming the file will be much more efficient. There are
some UDFs at cflib.org to help you out with this. Also, if you're
using MX 7, there is a new memory throttle on the Settings page
called Maximum size of post data to help prevent against DoS
attacks. Make sure that you up the default 10MB setting to the size of
the largest file you anticipate to accept, or you'll hit that road
block as well.

Regards,
Dave.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226463
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cffile upload large files again!

2005-12-07 Thread George Abraham
Thanks Dave, I don't see any UDFs on cflib that deal with what you talk
about, though? I searched using various terms, but nothing turned up.

I do understand what you say about streaming the file while uploading. Can
this be done using the java.io.InputStream class?

George

On 12/7/05, Dave Carabetta [EMAIL PROTECTED] wrote:

 I would absolutely look into alternative solutions to cffile in this
 case. Remember, the cffile tag reads the *entire* file into memory (if
 it can) and only then does the action request. I'll bet money that
 your crap out was an OutOfMemory error at the Java level -- you were
 just looking at the wrong log file, which is why you didn't see it. If
 you're serious about allowing uploads of the sizes you're talking
 about, then streaming the file will be much more efficient. There are
 some UDFs at cflib.org to help you out with this. Also, if you're
 using MX 7, there is a new memory throttle on the Settings page
 called Maximum size of post data to help prevent against DoS
 attacks. Make sure that you up the default 10MB setting to the size of
 the largest file you anticipate to accept, or you'll hit that road
 block as well.

 Regards,
 Dave.



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226468
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cffile upload large files again!

2005-12-07 Thread Dave Carabetta
On 12/7/05, George Abraham [EMAIL PROTECTED] wrote:
 Thanks Dave, I don't see any UDFs on cflib that deal with what you talk
 about, though? I searched using various terms, but nothing turned up.

 I do understand what you say about streaming the file while uploading. Can
 this be done using the java.io.InputStream class?


Yikes, you're right. I can't seem to find them either (though I swear
I saw at least one). I do believe you'd need to using the InputStream
class to get this done, though I'm not a strong enough Java developer
to really help you out there. Hopefully somebody else can chime in
more definitively?

Regards,
Dave.

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226474
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cffile upload large files again!

2005-12-07 Thread FROEHLING, ROBERT \(AIT\)
George,

Take a look at this technique by John Bartlett.

http://johnwbartlett.com/cf_tipsntricks/index.cfm?TopicID=96

Robert

-Original Message-
From: George Abraham [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 07, 2005 1:32 PM
To: CF-Talk
Subject: Re: cffile upload large files again!


Thanks Dave, I don't see any UDFs on cflib that deal with what you talk
about, though? I searched using various terms, but nothing turned up.

I do understand what you say about streaming the file while uploading.
Can
this be done using the java.io.InputStream class?

George

On 12/7/05, Dave Carabetta [EMAIL PROTECTED] wrote:

 I would absolutely look into alternative solutions to cffile in this
 case. Remember, the cffile tag reads the *entire* file into memory (if
 it can) and only then does the action request. I'll bet money that
 your crap out was an OutOfMemory error at the Java level -- you were
 just looking at the wrong log file, which is why you didn't see it. If
 you're serious about allowing uploads of the sizes you're talking
 about, then streaming the file will be much more efficient. There are
 some UDFs at cflib.org to help you out with this. Also, if you're
 using MX 7, there is a new memory throttle on the Settings page
 called Maximum size of post data to help prevent against DoS
 attacks. Make sure that you up the default 10MB setting to the size of
 the largest file you anticipate to accept, or you'll hit that road
 block as well.

 Regards,
 Dave.





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226477
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cffile upload large files again!

2005-12-07 Thread George Abraham
Robert,
That one specifically talks about reading in text files already residing on
the server. I bet that could easily be modified for reading in uploaded
files. Thanks for the link.

George

On 12/7/05, FROEHLING, ROBERT (AIT) [EMAIL PROTECTED] wrote:

 George,

 Take a look at this technique by John Bartlett.

 http://johnwbartlett.com/cf_tipsntricks/index.cfm?TopicID=96

 Robert




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226487
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cffile upload large files again!

2005-12-07 Thread FROEHLING, ROBERT \(AIT\)
Sorry about that.  I guess I should have paid more attention to your
original post.  :)

-Original Message-
From: George Abraham [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 07, 2005 3:27 PM
To: CF-Talk
Subject: Re: cffile upload large files again!


Robert,
That one specifically talks about reading in text files already residing
on
the server. I bet that could easily be modified for reading in uploaded
files. Thanks for the link.

George

On 12/7/05, FROEHLING, ROBERT (AIT) [EMAIL PROTECTED] wrote:

 George,

 Take a look at this technique by John Bartlett.

 http://johnwbartlett.com/cf_tipsntricks/index.cfm?TopicID=96

 Robert






~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226490
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cffile upload bug with cf7.0.1 (Merrimack)?

2005-11-23 Thread Dave Watts
 It seems that there is a bug with cffile upload on cf 7.0.1. 

There's an available hot fix for this on the MM site:
http://www.macromedia.com/go/f97044e

I'd recommend that you just install the cumulative hotfix for 7.0.1:
http://www.macromedia.com/go/aae43964

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225065
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFFILE Upload file restrictions (was Re: fck editor 2.0 RC)

2004-12-13 Thread Matt Robertson
Aieee.  So it does.  I thought there was something more to CFFILE
ACCEPT than that but a quick RTFM plainly says otherwise.

So much for that.  Never mind.  :-)

-- 
--Matt Robertson--
President, Janitor
MSB Designs, Inc.
mysecretbase.com

~|
Special thanks to the CF Community Suite Silver Sponsor - New Atlanta
http://www.newatlanta.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187455
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFFILE upload to Linux server issues

2004-11-12 Thread Eric Creese
what do you mean it needs to be capped?

-Original Message-
From: dave [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 11, 2004 5:06 PM
To: CF-Talk
Subject: RE: CFFILE upload to Linux server issues


eric
sorry this maybe a dumb ? but i saw u wrote that u had set the variables in the
application.cfm

BUT on linux nit needs to be capped

Application.cfm

-- Original Message --
From: Eric Creese [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date:  Thu, 11 Nov 2004 14:30:06 -0600

Ok I put my slashes back and I get the following error

here is how I set the var.

CFSET directorypath =/home/auto1/autocomm-inc.com/html/dev/

The destination directory /home/auto1/autocomm-inc.com/html/dev/images/apps/ 
specified in the CFFILE tag is invalid.  

The directory either does not exist or is not accessible by this tag.  
  
The error occurred in 
/home/auto1/autocomm-inc.com/html/dev/Admin/x_addtest.cfm: line 24
 
22 : filefield=timage1
23 : mode = 777
24 : accept=image/*

 





~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184111
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFFILE upload to Linux server issues

2004-11-12 Thread Robertson-Ravo, Neil (RX)
He means capitalized : as in Application.cfm and not application.cfm



-Original Message-
From: Eric Creese [mailto:[EMAIL PROTECTED] 
Sent: 12 November 2004 14:23
To: CF-Talk
Subject: RE: CFFILE upload to Linux server issues

what do you mean it needs to be capped?

-Original Message-
From: dave [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 11, 2004 5:06 PM
To: CF-Talk
Subject: RE: CFFILE upload to Linux server issues


eric
sorry this maybe a dumb ? but i saw u wrote that u had set the variables in
the
application.cfm

BUT on linux nit needs to be capped

Application.cfm

-- Original Message --
From: Eric Creese [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date:  Thu, 11 Nov 2004 14:30:06 -0600

Ok I put my slashes back and I get the following error

here is how I set the var.

CFSET directorypath =/home/auto1/autocomm-inc.com/html/dev/

The destination directory
/home/auto1/autocomm-inc.com/html/dev/images/apps/ specified in the CFFILE
tag is invalid.  

The directory either does not exist or is not accessible by this tag.  
  
The error occurred in
/home/auto1/autocomm-inc.com/html/dev/Admin/x_addtest.cfm: line 24
 
22 : filefield=timage1
23 : mode = 777
24 : accept=image/*

 







~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184112
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFFILE upload to Linux server issues

2004-11-12 Thread COLLIE David
Application.cfm is case sensitive on *nix flavours of Unix

If it is not named Application.cfm (and OnRequestEnd.cfm) it will not
run automatically on every request.

-- 
dc

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184113
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFFILE upload to Linux server issues

2004-11-12 Thread Eric Creese
ah, thank you I did not know that.

Why is that necessary?

-Original Message-
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED]
Sent: Friday, November 12, 2004 8:26 AM
To: CF-Talk
Subject: RE: CFFILE upload to Linux server issues


He means capitalized : as in Application.cfm and not application.cfm



-Original Message-
From: Eric Creese [mailto:[EMAIL PROTECTED] 
Sent: 12 November 2004 14:23
To: CF-Talk
Subject: RE: CFFILE upload to Linux server issues

what do you mean it needs to be capped?

-Original Message-
From: dave [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 11, 2004 5:06 PM
To: CF-Talk
Subject: RE: CFFILE upload to Linux server issues


eric
sorry this maybe a dumb ? but i saw u wrote that u had set the variables in
the
application.cfm

BUT on linux nit needs to be capped

Application.cfm

-- Original Message --
From: Eric Creese [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date:  Thu, 11 Nov 2004 14:30:06 -0600

Ok I put my slashes back and I get the following error

here is how I set the var.

CFSET directorypath =/home/auto1/autocomm-inc.com/html/dev/

The destination directory
/home/auto1/autocomm-inc.com/html/dev/images/apps/ specified in the CFFILE
tag is invalid.  

The directory either does not exist or is not accessible by this tag.  
  
The error occurred in
/home/auto1/autocomm-inc.com/html/dev/Admin/x_addtest.cfm: line 24
 
22 : filefield=timage1
23 : mode = 777
24 : accept=image/*

 









~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184114
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFFILE upload to Linux server issues

2004-11-12 Thread Burns, John D
Good catch Dave.  I totally forgot about mentioning that but I had a
HUGE problem with that when I was hosting on a shared linux box.

John 

-Original Message-
From: dave [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 11, 2004 6:06 PM
To: CF-Talk
Subject: RE: CFFILE upload to Linux server issues

eric
sorry this maybe a dumb ? but i saw u wrote that u had set the variables
in the application.cfm

BUT on linux nit needs to be capped

Application.cfm

-- Original Message --
From: Eric Creese [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date:  Thu, 11 Nov 2004 14:30:06 -0600

Ok I put my slashes back and I get the following error

here is how I set the var.

CFSET directorypath =/home/auto1/autocomm-inc.com/html/dev/

The destination directory
/home/auto1/autocomm-inc.com/html/dev/images/apps/ specified in the
CFFILE tag is invalid.  

The directory either does not exist or is not accessible by this tag.  
  
The error occurred in 
/home/auto1/autocomm-inc.com/html/dev/Admin/x_addtest.cfm: line 24
 
22 : filefield=timage1
23 : mode = 777
24 : accept=image/*

 





~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184117
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFFILE upload to Linux server issues

2004-11-12 Thread Burns, John D
Because *nix is case sensitive in file names and CF will only handle
them as expected if you capitalize them the way CF expects.

John 

-Original Message-
From: Eric Creese [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 12, 2004 9:41 AM
To: CF-Talk
Subject: RE: CFFILE upload to Linux server issues

ah, thank you I did not know that.

Why is that necessary?

-Original Message-
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED]
Sent: Friday, November 12, 2004 8:26 AM
To: CF-Talk
Subject: RE: CFFILE upload to Linux server issues


He means capitalized : as in Application.cfm and not application.cfm



-Original Message-
From: Eric Creese [mailto:[EMAIL PROTECTED]
Sent: 12 November 2004 14:23
To: CF-Talk
Subject: RE: CFFILE upload to Linux server issues

what do you mean it needs to be capped?

-Original Message-
From: dave [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 11, 2004 5:06 PM
To: CF-Talk
Subject: RE: CFFILE upload to Linux server issues


eric
sorry this maybe a dumb ? but i saw u wrote that u had set the variables
in the application.cfm

BUT on linux nit needs to be capped

Application.cfm

-- Original Message --
From: Eric Creese [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date:  Thu, 11 Nov 2004 14:30:06 -0600

Ok I put my slashes back and I get the following error

here is how I set the var.

CFSET directorypath =/home/auto1/autocomm-inc.com/html/dev/

The destination directory
/home/auto1/autocomm-inc.com/html/dev/images/apps/ specified in the
CFFILE tag is invalid.  

The directory either does not exist or is not accessible by this tag.  
  
The error occurred in
/home/auto1/autocomm-inc.com/html/dev/Admin/x_addtest.cfm: line 24
 
22 : filefield=timage1
23 : mode = 777
24 : accept=image/*

 











~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184119
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFFILE upload to Linux server issues

2004-11-11 Thread Eric Creese
Ok I took the var out of the application page an put it right on the processing 
page. Now the var is set correctly however it is failing with a new message. 
Does anyone think this is a permissions issue since this is running on Linux. 
No problems with this on Windows where the site was created.

The destination directory /root/a/mysite.com/html/dev/images/apps/ specified 
in the CFFILE tag is invalid.  

The directory either does not exist or is not accessible by this tag.  
  
The error occurred in /root/a/mysite.com/html/dev/Admin/x_addtest.cfm: line 23
 
21 :  nameconflict=makeunique
22 :  filefield=timage1
23 :  accept=image/*

 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183980
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFFILE upload to Linux server issues

2004-11-11 Thread Ubqtous
I'm pretty sure ColdFusion is unable to write the file because it
doesn't have permission to access root's directory. I can't give you
any specific advice on how to fix it as I've only worked with a
vanilla CF/Linux/Apache install, which doesn't put web files into
/root/ ...

HTH a little

On Thu, 11 Nov 2004 13:54:39 -0400, Eric Creese [EMAIL PROTECTED] wrote:
 Ok I took the var out of the application page an put it right on the 
 processing page. Now the var is set correctly however it is failing with a 
 new message. Does anyone think this is a permissions issue since this is 
 running on Linux. No problems with this on Windows where the site was created.
 
 The destination directory /root/a/mysite.com/html/dev/images/apps/ 
 specified in the CFFILE tag is invalid.
 
 The directory either does not exist or is not accessible by this tag.
 
 The error occurred in /root/a/mysite.com/html/dev/Admin/x_addtest.cfm: line 23
 
 21 :  nameconflict=makeunique
 22 :  filefield=timage1
 23 :  accept=image/*

-- 
Ubqtous

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183989
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFFILE upload to Linux server issues

2004-11-11 Thread Lawrence Ng
directory path is incorrect.

should be \ not / and check your file permissions.

u should implement a try catch framework as well

 [EMAIL PROTECTED] 11/11/04 9:54 AM 
Ok I took the var out of the application page an put it right on the
processing page. Now the var is set correctly however it is failing with
a new message. Does anyone think this is a permissions issue since this
is running on Linux. No problems with this on Windows where the site was
created.

The destination directory /root/a/mysite.com/html/dev/images/apps/
specified in the CFFILE tag is invalid.  

The directory either does not exist or is not accessible by this tag.  
  
The error occurred in /root/a/mysite.com/html/dev/Admin/x_addtest.cfm:
line 23
 
21 :  nameconflict=makeunique
22 :  filefield=timage1
23 :  accept=image/*

 



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183992
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFFILE upload to Linux server issues

2004-11-11 Thread Burns, John D
The . in the file name might be screwing something up.  Maybe CF is
thinking there's a scope of some sort?  I'm not sure, but that may be a
place to check.

John 

-Original Message-
From: Eric Creese [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 11, 2004 1:00 PM
To: CF-Talk
Subject: CFFILE upload to Linux server issues

Ok I have a site on linux where I set a directory path so in the
application.cfm so i can use it it during my file uploads like the
following

CFSET directorypath =/root/a/mysite.com/html/dev/

Now when I try to excute the page to upload the file using CFFILE I get
an error message telling me the variable is undefinied.

here is the error message followed by the code. Mind you this worked in
windowsWhat am I missing here?




cfif isdefined('form.timage1')
cfif #form.timage1# NEQ ''
cffile action=upload
  destination=#directorypath#images/apps/
  nameconflict=makeunique
  filefield=timage1
  accept=image/*





~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183999
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFFILE upload to Linux server issues

2004-11-11 Thread Burns, John D
You may need to set the mode attribute of cffile to 777.  You may also
want to check and make sure that the directory you're trying to upload
to has the appropriate permissions on it.  777 allows uploads and such
but may open you up too much.  Set the permissions just for what you
need.

John 

-Original Message-
From: Eric Creese [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 11, 2004 12:55 PM
To: CF-Talk
Subject: Re: CFFILE upload to Linux server issues

Ok I took the var out of the application page an put it right on the
processing page. Now the var is set correctly however it is failing with
a new message. Does anyone think this is a permissions issue since this
is running on Linux. No problems with this on Windows where the site was
created.

The destination directory /root/a/mysite.com/html/dev/images/apps/
specified in the CFFILE tag is invalid.  

The directory either does not exist or is not accessible by this tag.  
  
The error occurred in /root/a/mysite.com/html/dev/Admin/x_addtest.cfm:
line 23
 
21 :  nameconflict=makeunique
22 :  filefield=timage1
23 :  accept=image/*

 



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184000
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFFILE upload to Linux server issues

2004-11-11 Thread Eric Creese
sorry I just root as an example so please think of root as the same as home

-Original Message-
From: Ubqtous [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 11, 2004 1:27 PM
To: CF-Talk
Subject: Re: CFFILE upload to Linux server issues


I'm pretty sure ColdFusion is unable to write the file because it
doesn't have permission to access root's directory. I can't give you
any specific advice on how to fix it as I've only worked with a
vanilla CF/Linux/Apache install, which doesn't put web files into
/root/ ...

HTH a little

On Thu, 11 Nov 2004 13:54:39 -0400, Eric Creese [EMAIL PROTECTED] wrote:
 Ok I took the var out of the application page an put it right on the 
 processing page. Now the var is set correctly however it is failing with a 
 new message. Does anyone think this is a permissions issue since this is 
 running on Linux. No problems with this on Windows where the site was created.
 
 The destination directory /root/a/mysite.com/html/dev/images/apps/ 
 specified in the CFFILE tag is invalid.
 
 The directory either does not exist or is not accessible by this tag.
 
 The error occurred in /root/a/mysite.com/html/dev/Admin/x_addtest.cfm: line 23
 
 21 :  nameconflict=makeunique
 22 :  filefield=timage1
 23 :  accept=image/*

-- 
Ubqtous



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184017
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFFILE upload to Linux server issues

2004-11-11 Thread Dave Carabetta
On Thu, 11 Nov 2004 11:30:40 -0800, Lawrence Ng [EMAIL PROTECTED] wrote:
 directory path is incorrect.
 
 should be \ not / and check your file permissions.
 
 u should implement a try catch framework as well
 

Eh? That's not true at all. The path separator on a *nix system is the
forward slash, /, not the backslash, \. I do lots of file
read/writes in our environment and I use the forward slash without
issue.

Also, somebody else noted dots in the path. This isn't an issue
either. Tests need to be run to make that the user that CF runs as is
able to right to *each directory* that leads to the ultimate
destination. In *nix systems, if you have permissions to write to a
sub-directory, but not to a parent directory, you'll be denied.

Regards,
Dave.

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184019
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFFILE upload to Linux server issues

2004-11-11 Thread Eric Creese
now I get the following after I added the mode option.

String index out of range: -1  
 
  
The error occurred in 
/home/auto1/autocomm-inc.com/html/dev/Admin/x_addtest.cfm: line 24
 
22 :  filefield=timage1
23 :  mode = 777
24 :  accept=image/pjpeg,image/gif,image/jpg,image/jpeg

 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184022
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFFILE upload to Linux server issues

2004-11-11 Thread Burns, John D
The 777 should be in quotes.  Mode=777 it's a string not a number.

John 

-Original Message-
From: Eric Creese [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 11, 2004 3:18 PM
To: CF-Talk
Subject: RE: CFFILE upload to Linux server issues

now I get the following after I added the mode option.

String index out of range: -1  
 
  
The error occurred in
/home/auto1/autocomm-inc.com/html/dev/Admin/x_addtest.cfm: line 24
 
22 :  filefield=timage1
23 :  mode = 777
24 :  accept=image/pjpeg,image/gif,image/jpg,image/jpeg

 



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184026
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFFILE upload to Linux server issues

2004-11-11 Thread Eric Creese
Ok I put my slashes back and I get the following error

here is how I set the var.

CFSET directorypath =/home/auto1/autocomm-inc.com/html/dev/

The destination directory /home/auto1/autocomm-inc.com/html/dev/images/apps/ 
specified in the CFFILE tag is invalid.  

The directory either does not exist or is not accessible by this tag.  
  
The error occurred in 
/home/auto1/autocomm-inc.com/html/dev/Admin/x_addtest.cfm: line 24
 
22 :  filefield=timage1
23 :  mode = 777
24 :  accept=image/*

 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184029
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFFILE upload to Linux server issues

2004-11-11 Thread Dave Carabetta
On Thu, 11 Nov 2004 14:30:06 -0600, Eric Creese [EMAIL PROTECTED] wrote:
 Ok I put my slashes back and I get the following error
 
 here is how I set the var.
 
 CFSET directorypath =/home/auto1/autocomm-inc.com/html/dev/
 
 The destination directory 
 /home/auto1/autocomm-inc.com/html/dev/images/apps/ specified in the CFFILE 
 tag is invalid.
 
 The directory either does not exist or is not accessible by this tag.
 
 The error occurred in 
 /home/auto1/autocomm-inc.com/html/dev/Admin/x_addtest.cfm: line 24
 
 22 :  filefield=timage1
 23 :  mode = 777
 24 :  accept=image/*
 

Eric,

A test. Have you tried logging in to the box as the user that CF is
running as and creating a file in each of the directories leading up
to your destination directory? For example, based on your path listed,
have you tried this?:

touch /home/foo.txt;
touch /home/auto1/foo.txt;
touch /home/auto1/autocomm-inc.com/foo.txt;
touch /home/auto1/autocomm-inc.com/html/foo.tct;
touch /home/auto1/autocomm-inc.com/html/dev/foo.txt;

The cleanup command for the above is simple:

rm -f `find /home -name foo.txt`

If you can successfully write as the CF user to each directory, then
it might be something else. But for most people on Unix systems, it
usually boils down to production.

Let us know what happens.

Regards,
Dave.

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184033
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFFILE upload to Linux server issues

2004-11-11 Thread Eric Creese
I will give it a try. I wrote the site on my development machine and that was 
win2K, SQL server. This site is for a client who is running it on Linux and 
MySql so I had to convert everything. Ran into the pitfalls of case 
sensitivity. Forgot about that from my old Oracle/Unix DBA days. That was 
frustrating. This is all I have left to do is to get teh file upload piece 
working. It worked fine in Windows but I am guessing it is a permissions thing 
here in Linux land.

-Original Message-
From: Dave Carabetta [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 11, 2004 2:51 PM
To: CF-Talk
Subject: Re: CFFILE upload to Linux server issues


On Thu, 11 Nov 2004 14:30:06 -0600, Eric Creese [EMAIL PROTECTED] wrote:
 Ok I put my slashes back and I get the following error
 
 here is how I set the var.
 
 CFSET directorypath =/home/auto1/autocomm-inc.com/html/dev/
 
 The destination directory 
 /home/auto1/autocomm-inc.com/html/dev/images/apps/ specified in the CFFILE 
 tag is invalid.
 
 The directory either does not exist or is not accessible by this tag.
 
 The error occurred in 
 /home/auto1/autocomm-inc.com/html/dev/Admin/x_addtest.cfm: line 24
 
 22 :  filefield=timage1
 23 :  mode = 777
 24 :  accept=image/*
 

Eric,

A test. Have you tried logging in to the box as the user that CF is
running as and creating a file in each of the directories leading up
to your destination directory? For example, based on your path listed,
have you tried this?:

touch /home/foo.txt;
touch /home/auto1/foo.txt;
touch /home/auto1/autocomm-inc.com/foo.txt;
touch /home/auto1/autocomm-inc.com/html/foo.tct;
touch /home/auto1/autocomm-inc.com/html/dev/foo.txt;

The cleanup command for the above is simple:

rm -f `find /home -name foo.txt`

If you can successfully write as the CF user to each directory, then
it might be something else. But for most people on Unix systems, it
usually boils down to production.

Let us know what happens.

Regards,
Dave.



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184037
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFFILE upload to Linux server issues

2004-11-11 Thread Eric Creese
This may be a dumb question, but what user would I be using to upload the file? 
Would it be the user I set up in CF Admin?

-Original Message-
From: Dave Carabetta [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 11, 2004 2:51 PM
To: CF-Talk
Subject: Re: CFFILE upload to Linux server issues


On Thu, 11 Nov 2004 14:30:06 -0600, Eric Creese [EMAIL PROTECTED] wrote:
 Ok I put my slashes back and I get the following error
 
 here is how I set the var.
 
 CFSET directorypath =/home/auto1/autocomm-inc.com/html/dev/
 
 The destination directory 
 /home/auto1/autocomm-inc.com/html/dev/images/apps/ specified in the CFFILE 
 tag is invalid.
 
 The directory either does not exist or is not accessible by this tag.
 
 The error occurred in 
 /home/auto1/autocomm-inc.com/html/dev/Admin/x_addtest.cfm: line 24
 
 22 :  filefield=timage1
 23 :  mode = 777
 24 :  accept=image/*
 

Eric,

A test. Have you tried logging in to the box as the user that CF is
running as and creating a file in each of the directories leading up
to your destination directory? For example, based on your path listed,
have you tried this?:

touch /home/foo.txt;
touch /home/auto1/foo.txt;
touch /home/auto1/autocomm-inc.com/foo.txt;
touch /home/auto1/autocomm-inc.com/html/foo.tct;
touch /home/auto1/autocomm-inc.com/html/dev/foo.txt;

The cleanup command for the above is simple:

rm -f `find /home -name foo.txt`

If you can successfully write as the CF user to each directory, then
it might be something else. But for most people on Unix systems, it
usually boils down to production.

Let us know what happens.

Regards,
Dave.



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184042
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFFILE upload to Linux server issues

2004-11-11 Thread Dave Carabetta
On Thu, 11 Nov 2004 15:11:29 -0600, Eric Creese [EMAIL PROTECTED] wrote:
 This may be a dumb question, but what user would I be using to upload the 
 file? Would it be the user I set up in CF Admin?
 

No. When you start MX in Unix, you log in to the system as somebody
and start it up. If you were to do a ps -ef | grep jrun (if using the
J2EE version) or ps -ef | grep coldfusion, what user appears with the
coldfusion process? Actually, this might be easier if you tell me
which version of coldfusion you're using -- MX for J2EE or the
standalone version?

Regards,
Dave.

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184058
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFFILE upload to Linux server issues

2004-11-11 Thread dave
eric
sorry this maybe a dumb ? but i saw u wrote that u had set the variables in the
application.cfm

BUT on linux nit needs to be capped

Application.cfm

-- Original Message --
From: Eric Creese [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date:  Thu, 11 Nov 2004 14:30:06 -0600

Ok I put my slashes back and I get the following error

here is how I set the var.

CFSET directorypath =/home/auto1/autocomm-inc.com/html/dev/

The destination directory /home/auto1/autocomm-inc.com/html/dev/images/apps/ 
specified in the CFFILE tag is invalid.  

The directory either does not exist or is not accessible by this tag.  
  
The error occurred in 
/home/auto1/autocomm-inc.com/html/dev/Admin/x_addtest.cfm: line 24
 
22 : filefield=timage1
23 : mode = 777
24 : accept=image/*

 



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184065
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFFILE UPLOAD...

2004-09-17 Thread Butch Zaccheo
I figured it out... My permissions were not set correctly on the directory..

On 9/17/04 3:31 PM, Butch Zaccheo [EMAIL PROTECTED] wrote:

 Hey everyone... 
 
 I¹m sure there is a simple answer to this problem...
 
 I¹m using the cffile tag to upload an image file. When I run the script
 everything seems to go fine... no errors.. But when I check the destination
 directory, the file doesn¹t exist... What am I doing wrong?
 
 Any help would be much appreciated.
 
 BZaccheo
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: CFFILE UPLOAD...

2004-09-17 Thread Russ
Can you post the code you’re using for the cffile tag?

_

From: Butch Zaccheo [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 17, 2004 6:32 PM
To: CF-Talk
Subject: CFFILE UPLOAD...

Hey everyone... 

I¹m sure there is a simple answer to this problem...

I¹m using the cffile tag to upload an image file. When I run the script
everything seems to go fine... no errors.. But when I check the destination
directory, the file doesn¹t exist... What am I doing wrong?

Any help would be much appreciated.

BZaccheo

_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFFile upload problem

2004-07-26 Thread Jim McAtee
I _finally_ figured this one out.In most of my form action scripts I
employ a tag which strips white space from all form fields.If that tag
is allowed to touch the file upload fields, then I get the error message.
I've built in an exception list attribute into the trimming tag and if I
except those file input fields then I get the expected results.

- Original Message - 
From: Jim McAtee [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 1:06 PM
Subject: CFFile upload problem

 CF5.I'm having a bit of a time using cffile action="" used
it
 in the past with no problems, but for some reason...

 I've got a large form containing an input field of type=file.

 form name=myform action="" method=post
 enctype=multipart/form-data
 input type=file name=premphoto size=50 maxlength=100
 ...
 /form

 In the action template, I have

 cffile action="">
filefield=premphoto
accept=image/jpg,image/gif
destination=D:\web\prem\
nameconflict=overwrite

 The error I get is:

 Error in CFFILE tag
 The form field specified in the CFFILE tag (PREMPHOTO) does not contain
an
 uploaded file. Please be sure that you have specified the correct form
 field name.

 So, what am I doing wrong, or how to debug?

 A couple other questions:

 Can I have more than a single input field of type=file on a form?

 Since the file upload isn't required, what is the best way to test for
the
 existance of an uploaded file before doing the cffile action="">
 Will the test Len(form.premphoto) tell me if a file has been uploaded?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFFile upload problem

2004-07-20 Thread Bryan Stevenson
could the maxlength attribute be truncating the file path??

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

- Original Message - 
From: Jim McAtee 
To: CF-Talk 
Sent: Tuesday, July 20, 2004 12:06 PM
Subject: CFFile upload problem

CF5.I'm having a bit of a time using cffile action="" used it
in the past with no problems, but for some reason...

I've got a large form containing an input field of type=file.

form name=myform action="" method=post
enctype=multipart/form-data
input type=file name=premphoto size=50 maxlength=100
...
/form

In the action template, I have

cffile action="">
 filefield=premphoto
 accept=image/jpg,image/gif
 destination=D:\web\prem\
 nameconflict=overwrite

The error I get is:

Error in CFFILE tag
The form field specified in the CFFILE tag (PREMPHOTO) does not contain an
uploaded file. Please be sure that you have specified the correct form
field name.

So, what am I doing wrong, or how to debug?

A couple other questions:

Can I have more than a single input field of type=file on a form?

Since the file upload isn't required, what is the best way to test for the
existance of an uploaded file before doing the cffile action="">
Will the test Len(form.premphoto) tell me if a file has been uploaded?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: CFFile upload problem

2004-07-20 Thread Dave Watts
 input type=file name=premphoto size=50 maxlength=100 ...

Are MAXLENGTH and SIZE valid attributes for a file upload field?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFFile upload problem

2004-07-20 Thread Jim McAtee
Not in my testing, but I just happened to be looking at that and wondering
if it was wise to have a maxlength on the field.I removed it and got the
same results.

- Original Message - 
From: Bryan Stevenson [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 1:12 PM
Subject: Re: CFFile upload problem

 could the maxlength attribute be truncating the file path??

 Bryan Stevenson B.Comm.
 VP  Director of E-Commerce Development
 Electric Edge Systems Group Inc.
 t. 250.920.8830
 e. [EMAIL PROTECTED]

- Original Message - 
From: Jim McAtee
To: CF-Talk
Sent: Tuesday, July 20, 2004 12:06 PM
Subject: CFFile upload problem


CF5.I'm having a bit of a time using cffile action="">
used it
in the past with no problems, but for some reason...

I've got a large form containing an input field of type=file.

form name=myform action="" method=post
enctype=multipart/form-data
input type=file name=premphoto size=50 maxlength=100
...
/form
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFFile upload problem

2004-07-20 Thread Jim McAtee
- Original Message - 
From: Dave Watts [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 1:23 PM
Subject: RE: CFFile upload problem

  input type=file name=premphoto size=50 maxlength=100 ...

 Are MAXLENGTH and SIZE valid attributes for a file upload field?

I've removed both, with the same results.

What I'm finding is that the form field contains a temp file name

cfif Len(form.premphoto)
cfoutput#form.premphoto#/coufput
cffile ...
/cfif

C:\WINNT\TEMP\ACFA4A2.tmp

That file is nowhere to be found on the server, so I assume either CF or
IIS is cleaning up after it generates the page sent back to the browser.

Is that the expected behavior, to end up with a local file name after the
form submisssion, or is it behaving like this because of the error?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFFile upload problem

2004-07-20 Thread Bryan Stevenson
there is always the temp file as you're finding...just not sure when it's written/deleted

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

- Original Message - 
From: Jim McAtee 
To: CF-Talk 
Sent: Tuesday, July 20, 2004 12:48 PM
Subject: Re: CFFile upload problem

- Original Message - 
From: Dave Watts [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 1:23 PM
Subject: RE: CFFile upload problem

  input type=file name=premphoto size=50 maxlength=100 ...

 Are MAXLENGTH and SIZE valid attributes for a file upload field?

I've removed both, with the same results.

What I'm finding is that the form field contains a temp file name

cfif Len(form.premphoto)
 cfoutput#form.premphoto#/coufput
 cffile ...
/cfif

C:\WINNT\TEMP\ACFA4A2.tmp

That file is nowhere to be found on the server, so I assume either CF or
IIS is cleaning up after it generates the page sent back to the browser.

Is that the expected behavior, to end up with a local file name after the
form submisssion, or is it behaving like this because of the error?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: CFFile upload problem

2004-07-20 Thread Dave Watts
 What I'm finding is that the form field contains a temp file name
 
 cfif Len(form.premphoto)
cfoutput#form.premphoto#/coufput
cffile ...
 /cfif
 
 C:\WINNT\TEMP\ACFA4A2.tmp
 
 That file is nowhere to be found on the server, so I assume 
 either CF or IIS is cleaning up after it generates the page 
 sent back to the browser.
 
 Is that the expected behavior, to end up with a local file 
 name after the form submisssion, or is it behaving like this 
 because of the error?

The form variable containing your uploaded file isn't a string; you can't
just check its length and output it. Until you run your CFFILE tag, it's
just a pointer of sorts to the temporary file created by the server when a
file is uploaded. I suspect that your code might work if you just had the
CFFILE tag.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFFile upload problem

2004-07-20 Thread Jim McAtee
- Original Message - 
From: Dave Watts [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 2:16 PM
Subject: RE: CFFile upload problem

  What I'm finding is that the form field contains a temp file name
 
  cfif Len(form.premphoto)
 cfoutput#form.premphoto#/coufput
 cffile ...
  /cfif
 
  C:\WINNT\TEMP\ACFA4A2.tmp
 
  That file is nowhere to be found on the server, so I assume
  either CF or IIS is cleaning up after it generates the page
  sent back to the browser.
 
  Is that the expected behavior, to end up with a local file
  name after the form submisssion, or is it behaving like this
  because of the error?

 The form variable containing your uploaded file isn't a string; you
can't
 just check its length and output it. Until you run your CFFILE tag, it's
 just a pointer of sorts to the temporary file created by the server when
a
 file is uploaded. I suspect that your code might work if you just had
the
 CFFILE tag.

That was added afterwards in an attempt to debug the problem.It fails in
the same manner without the cfif or cfoutput.I will need something
to test within a cfif statement to know whether a file has been uploaded
or not so that I don't call the cffile statement when it's not needed.

I just noticed that I get the same CF error message if I use a
non-existant form field name.Surprised CF doesn't give an undefined
variable error.

Error in CFFILE tag
The form field specified in the CFFILE tag (X) does not contain an
uploaded file. Please be sure that you have specified the correct form
field name.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: CFFile upload problem

2004-07-20 Thread Samuel R. Neff
You can handle file uploads using the form field directly without using
cffile if that meets your needs.The form field value will be a path to the
temp file where it's stored.

This is useful for example if you want to read in the file and process it
but don't need to make a copy.

It's not documented behavior so it could change in the future...

Sam

 -Original Message-
 From: Dave Watts [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, July 20, 2004 4:16 PM
 To: CF-Talk
 Subject: RE: CFFile upload problem
 
  What I'm finding is that the form field contains a temp file name
  
  cfif Len(form.premphoto)
 cfoutput#form.premphoto#/coufput
 cffile ...
  /cfif
  
  C:\WINNT\TEMP\ACFA4A2.tmp
  
  That file is nowhere to be found on the server, so I assume 
  either CF or IIS is cleaning up after it generates the page 
  sent back to the browser.
  
  Is that the expected behavior, to end up with a local file 
  name after the form submisssion, or is it behaving like this 
  because of the error?
 
 The form variable containing your uploaded file isn't a 
 string; you can't
 just check its length and output it. Until you run your 
 CFFILE tag, it's
 just a pointer of sorts to the temporary file created by the 
 server when a
 file is uploaded. I suspect that your code might work if you 
 just had the
 CFFILE tag.
 
 Dave Watts
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: CFFILE UPLOAD ???

2004-05-11 Thread Barney Boisvert
You can specify a full path, includeing filename in the CFFILE
ACTION="" tag, or you can upload it, and then do a CFFILE
ACTION="" to rename it to whatever you want.The advantage of the
second method is that you will have access to the CFFILE scope that the
upload generates, containing all the info about the file. 

Cheers,
barneyb

 -Original Message-
 From: sam komolafe [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, May 11, 2004 3:14 PM
 To: CF-Talk
 Subject: CFFILE UPLOAD ??? 
 
 Hi All,
 
 How do I append a string value to the name of the file I am 
 upload to the server?
 EXAMPLE: 
 File Name to upload is: Readme.txt
 File Name AFTER Upload: FOO-Readme.txt
 
 Thanks
 Sam Komolafe
 ---
 [This E-mail scanned for viruses.]
 
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: cffile upload question

2004-05-07 Thread cf coder
I addedenctype=multipart/form-data on the parent form window, I now get a different error. The form field C:\Documents and Settings\assets.txt did not contain a file

 Hello Everybody,
 
 I am working on a application to upload
 attachments/files to the server using cffile.
 
 The interface is designed to allow the user to select
 one or more files to attach through a pop-up window. I
 am passing the list of files along with the complete
 file path the user has selected back to the parent
 window. To explain this further, the pop-up window has
 a form with the input type 'file' formfield and hidden
 variable that stores a comma separted list of all the
 file paths the user wishes to upload.
 
 On the parent window, I'm looping through this list
 and trying to upload the files one by one. I get an
 error.
 
 Here is the code:
 
 cfset MimeTypes =
 text/html,application/vnd.ms-powerpoint,application/vnd.ms-project,
 application/pdf,application/msword,application/vnd.ms-excel,
 application/x-zip-compressed,image/jpeg,image/gif,application/x-visio,
 application/drafting,model/vnd.dwf,image/x-dwg,application/dxf,
 application/x-excel,application/rtf,text/plain
 
 cfloop list=lFilesToUpload index=fUpload
 
 cffile 
 action="">
 filefield=#fUpload# 
 destination=#request.BlobDir#
 nameconflict=MAKEUNIQUE
 accept=#MimeTypes#
 
 /cfloop
 
 This is the error I get.
 
 Invalid content type:
 application/x-www-form-urlencoded. 
 
 I don't have that mime type in my code
 
 I think the error is caused because the filefield
 cffile attribute expects a form input variable? Can I
 not pass this attribute any variable name or in this
 case list item name?
 
 Can someone please show me how to get round this
 problem
 
 Best Regards,
 cfcoder
 
 
 	
 		
 __
 Do you Yahoo!?
 Win a $20,000 Career Makeover at Yahoo! HotJobs
 http://hotjobs.sweepstakes.yahoo.com/careermakeover
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: cffile upload question

2004-05-07 Thread cf coder
can somebody please help!
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: cffile upload question

2004-05-07 Thread cf coder
I'll try and explain this better. I have a form on the main page. The form has a button that opens up a pop-up window. The pop-up window has the input type 'file' field. I have added code to allow users add more than one file at a time. I am not uploading the file to the server at this stage. Instead I am passing the list of files selected along with the complete file path back to the parent window. The parent window has a submit button. When the user hits on submit. I am looping through the list containing the file paths and want to upload them one by one to the server using the cffile tag.

Here is the code

cfif isDefined(form.submit)
cfparam name=finalFilePathList default=
cfloop list=#form.hid_attachedFilesPath# index=lFilePath
cfset lFilesToUpload = ListAppend(lFilesToUpload,lFilePath)
/cfif

cfloop list=#lFilesToUpload# index=fUpload

cffile 
action="" 
filefield=#fUpload# 
destination=#request.BlobDir# 
nameconflict=MAKEUNIQUE 
accept=#MimeTypes# 

/cfloop 

Hope this gives you a better idea.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: cffile upload question

2004-05-07 Thread cf coder
can I create form field on the server? something like this.

cfif isDefined(form.submit)
cfparam name=finalFilePathList default=
cfset count = 1
cfloop list=#form.hid_attachedFilesPath# index=lFilePath
cfset lFilesToUpload = ListAppend(lFilesToUpload,lFilePath)
! SOMETHING LIKE THIS 
cfoutputinput type=file id=fileToUpload_#count# name=fileToUpload_#count# value=#lFilePath#/cfoutput

cfset count = count + 1

/cfloop

cfset posn = 1
cfloop list=#lFilesToUpload# index=fUpload
cffile action="">
filefield=form.fileToUpload_#posn# 
destination=#request.BlobsDir#
nameconflict=MAKEUNIQUE
accept=#fileMimeTypes#

cfset posn = posn + 1
/cfloop

Is this possible?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: cffile upload question

2004-05-07 Thread Bert Dawson
You can't just pass the full file path in a hidden field then upload the file. 
I think this is something to do with security...
:)

If you want to upload multiple files then you'll either need mutliple file fields, or you'll need to upload them sequentially.

HTH
Bert

From: cf coder [mailto:[EMAIL PROTECTED] 
Sent: 07 May 2004 17:48
To: CF-Talk
Subject: Re: cffile upload question

I'll try and explain this better. I have a form on the main page. The form has a button that opens up a pop-up window. The pop-up window has the input type 'file' field. I have added code to allow users add more than one file at a time. I am not uploading the file to the server at this stage. Instead I am passing the list of files selected along with the complete file path back to the parent window. The parent window has a submit button. When the user hits on submit. I am looping through the list containing the file paths and want to upload them one by one to the server using the cffile tag.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: cffile upload question

2004-05-07 Thread Greg Luce
You don't actually have the files in a file upload formfield if you're
just passing the string with the file location to the parent window.
You'll need to actually upload the file when you submit the pop-up
window. At least upload it somewhere to a temp directory. Then if you
want to move them enmasse to another location when you submit the main
form you can use cffile or cfftp. Make sense? The 'file' only exists in
the form with the file upload formfield. When you submit that form you
have the file available to the server (CF). If you don't take advantage
of it on that transaction, you lose it.

Greg

-Original Message-
From: cf coder [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 07, 2004 12:53 PM
To: CF-Talk
Subject: Re: cffile upload question

can I create form field on the server? something like this.

cfif isDefined(form.submit)
cfparam name=finalFilePathList default=
cfset count = 1
cfloop list=#form.hid_attachedFilesPath# index=lFilePath
cfset lFilesToUpload = ListAppend(lFilesToUpload,lFilePath)
! SOMETHING LIKE THIS 
cfoutputinput type=file id=fileToUpload_#count#
name=fileToUpload_#count# value=#lFilePath#/cfoutput

cfset count = count + 1

/cfloop

cfset posn = 1
cfloop list=#lFilesToUpload# index=fUpload
cffile action="">
filefield=form.fileToUpload_#posn# 
destination=#request.BlobsDir#
nameconflict=MAKEUNIQUE
accept=#fileMimeTypes#

cfset posn = posn + 1
/cfloop

Is this possible?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CFFILE upload error on CF MX

2004-03-09 Thread Michael T. Tangorre
What account are the ColdFusion services running under? Make sure that
account has permission to write to the file system.

Mike 

-Original Message-
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 09, 2004 6:06 PM
To: CF-Talk
Subject: CFFILE upload error on CF MX

Hi!
We just moved our site to a CF MX server from a CF 5.0 server and ran into
serveral errors. I have fixed all of them except one! There are two parts of
the site that upload files to the server through CFFILE.

This is the message I get when I try to upload:

access denied (java.io.FilePermission
C:\CFusionMX\runtime\servers\default\SERVER-INF\temp\wwwroot-tmp\neotm
p52019.tmp read) null 
The error occurred on line -1. 

Any ideas? I checked the uplaod path and permissions on the folders the site
is uploading to (all look right).

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CFFILE Upload

2004-01-23 Thread Matt Robertson
I believe CF only knows cgi.content_length, which it gets from the web server after the web server/browser handle the upload (cffile just moves it from the o/s' temp folder to the desired destination and names it).CF alone can't go any further than that so far as I know.

--
---
 Matt Robertson,[EMAIL PROTECTED]
 MSB Designs, Inc. http://mysecretbase.com
---

--
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CFFILE upload max. file size?

2003-06-11 Thread Trey Rouse
There is a bug in IIS that limits the file upload size.  Its tricky to
put a number on it, but anything over 4 megs on a 100mbit line will
likely send your server running never to return.

It has nothing to do with memory allocation, it's a fricken bug in IIS.
Microsoft acknowledges it to their ASP developers and directs them to
use a com object for the transfer in lou of a form post.  This works of
course for CF as well, but it means you can not use CFFILE for user
uploads on top of IIS.

Well, unless you like having your server crash.

Trey Rouse
Data Application Architect
Web Services - Rice University

 -Original Message-
 From: Andrew Golden [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 13, 2003 12:35 PM
 To: CF-Talk
 Subject: CFFILE upload max. file size?
 
 Does anyone know if there is a maximum file size that can be
transferred
 using CFFILE to upload? What is the largest anyone has ever had
repeated
 success with? Any help would be appreciatedthanks!
 
 Andrew Golden
 
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Host with the leader in ColdFusion hosting. 
Voted #1 ColdFusion host by CF Developers. 
Offering shared and dedicated hosting options. 
www.cfxhosting.com/default.cfm?redirect=10481

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: CFFILE upload max. file size?

2003-06-11 Thread Stacy Young
That's good to know...I ran into this a while back but never knew what
was causing the failure (I can only guess this was it but...)...was one
of the last straws before I went Apache.

-Stace


-Original Message-
From: Trey Rouse [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2003 3:47 PM
To: CF-Talk
Subject: RE: CFFILE upload max. file size?

There is a bug in IIS that limits the file upload size.  Its tricky to
put a number on it, but anything over 4 megs on a 100mbit line will
likely send your server running never to return.

It has nothing to do with memory allocation, it's a fricken bug in IIS.
Microsoft acknowledges it to their ASP developers and directs them to
use a com object for the transfer in lou of a form post.  This works of
course for CF as well, but it means you can not use CFFILE for user
uploads on top of IIS.

Well, unless you like having your server crash.

Trey Rouse
Data Application Architect
Web Services - Rice University

 -Original Message-
 From: Andrew Golden [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 13, 2003 12:35 PM
 To: CF-Talk
 Subject: CFFILE upload max. file size?
 
 Does anyone know if there is a maximum file size that can be
transferred
 using CFFILE to upload? What is the largest anyone has ever had
repeated
 success with? Any help would be appreciatedthanks!
 
 Andrew Golden
 
 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: CFFILE Upload question

2003-05-30 Thread Lee, Sima - Workstream
Hi,

What I did is do both client and server side validations.

The client side check is put all the accepted file extension in a list then use a 
JavaScript  to validate the file field at the submission. If the user uploaded an 
unaccepted file display alert message do not submit the form.

The server side validation I did more than just use the attributes in the CFFile tag. 
After the uploading I actually check the extension of the server file again because 
some MIME type let go not only one type of the file. If the uploaded file is 
unacceptable I will deleted it straight away. 

Also using cftry and cfcatch is not enough, if the use upload an empty file the 
cfcatch will  not catch it, but the CFFILE.ServerFile is not created, when you try to 
reference it you will get an error. (This was caught by our QA guy!).

If you need some JavaScript for this please let me know I will send you directly.

Hope this helps.


Sima


-Original Message-
From: Scott Wolf [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 6:01 PM
To: CF-Talk
Subject: Re: CFFILE Upload question


Actually.let me be more specific.

I tried it and it gives a CF error message.  What can I do to avoid that?  I
just want to redirect the user back to the upload form and have a message
display at the top saying something like Uploading this file type is not
allowed.  You may only upload images and audio clips.

That's where I really need the help.

(or was that response supposed to be some sort of CFTRY pun? :P  )

Scott
- Original Message - 
From: Bryan Love [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 5:36 PM
Subject: RE: CFFILE Upload question


 try it and see :)

 +---+
 Bryan Love
   Database Analyst
   Macromedia Certified Professional
   Internet Application Developer
 TeleCommunication Systems
 [EMAIL PROTECTED]
 +---+

 ...'If there must be trouble, let it be in my day, that my child may have
 peace'...
 - Thomas Paine, The American Crisis

 Let's Roll
 - Todd Beamer, Flight 93



 -Original Message-
 From: Scott Wolf [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 28, 2003 2:14 PM
 To: CF-Talk
 Subject: CFFILE Upload question


 If I specify MIME types in the ACCEPT attribute such as:

 CFFILE ACTION=UPLOAD FILEFIELD=Form.Upload1
 DESTINATION=C:\Inetpub\wwwroot\imghost\#SecureCheck.txtUserName#
 NAMECONFLICT=MAKEUNIQUE ACCEPT=text/html

 What happens if someone tries to upload a file that isn't on the accept
 list (like a jpg)?  Does a CF error page display?  I'm new to working with
 CFFILE and I'm not even sure if I'm asking the right question.  Any help
 would be greatly appreciated.  Thanks!

 Scott Wolf

 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: CFFILE Upload question

2003-05-30 Thread Ewok
 Also using cftry and cfcatch is not enough, if the use upload an empty
file the cfcatch will  not catch it, but the CFFILE.ServerFile is not
created, when you try to reference it you will get an error. (This was
caught by our QA guy!).

I've never been able to get CF 4.5 or 5 to upload a 0 byte file.
cffile errors out and my cfcatch ...well... it catches it
guess if you were getting them you could use cffile action=read to and the
contents of the form field itself to get the file info

Allowing users to upload files has always been a tedious one but yes cftry
is enough... you just dont stop with the cftry wrapped around the cffile
tag...

the next block would be something to make sure the accept attribute didn't
let the wrong type through by checking the ServerFileExt against whatever it
is you wanted to upload wrapped in a cftry of course...this time cfcatch
will delete the uploaded file and set a message to inform the user somehow.
( and any cfcatch's after this point)


normally the sequence would be something like this for me

Upload to temp...
Re Check Type
Check For same named files (if neccassarry)
Rename (if neccassary)
Move (if neccassary)
Enter data to database

each step is wrapped in its own error catching block most catches look like
this
cftry
do something
cfcatch type=any
cfset errmsg = There was a problem doing something.
cffile action=delete file=blahblah
cflocation url=index.cfm?errmsg=#errmsg# addtoken=no
/cfcatch
/cftry





- Original Message -
From: Lee, Sima - Workstream [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 6:58 AM
Subject: RE: CFFILE Upload question


 Hi,

 What I did is do both client and server side validations.

 The client side check is put all the accepted file extension in a list
then use a JavaScript  to validate the file field at the submission. If the
user uploaded an unaccepted file display alert message do not submit the
form.

 The server side validation I did more than just use the attributes in the
CFFile tag. After the uploading I actually check the extension of the server
file again because some MIME type let go not only one type of the file. If
the uploaded file is unacceptable I will deleted it straight away.

 Also using cftry and cfcatch is not enough, if the use upload an empty
file the cfcatch will  not catch it, but the CFFILE.ServerFile is not
created, when you try to reference it you will get an error. (This was
caught by our QA guy!).

 If you need some JavaScript for this please let me know I will send you
directly.

 Hope this helps.


 Sima


 -Original Message-
 From: Scott Wolf [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 28, 2003 6:01 PM
 To: CF-Talk
 Subject: Re: CFFILE Upload question


 Actually.let me be more specific.

 I tried it and it gives a CF error message.  What can I do to avoid that?
I
 just want to redirect the user back to the upload form and have a message
 display at the top saying something like Uploading this file type is not
 allowed.  You may only upload images and audio clips.

 That's where I really need the help.

 (or was that response supposed to be some sort of CFTRY pun? :P  )

 Scott
 - Original Message -
 From: Bryan Love [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Wednesday, May 28, 2003 5:36 PM
 Subject: RE: CFFILE Upload question


  try it and see :)
 
  +---+
  Bryan Love
Database Analyst
Macromedia Certified Professional
Internet Application Developer
  TeleCommunication Systems
  [EMAIL PROTECTED]
  +---+
 
  ...'If there must be trouble, let it be in my day, that my child may
have
  peace'...
  - Thomas Paine, The American Crisis
 
  Let's Roll
  - Todd Beamer, Flight 93
 
 
 
  -Original Message-
  From: Scott Wolf [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, May 28, 2003 2:14 PM
  To: CF-Talk
  Subject: CFFILE Upload question
 
 
  If I specify MIME types in the ACCEPT attribute such as:
 
  CFFILE ACTION=UPLOAD FILEFIELD=Form.Upload1
  DESTINATION=C:\Inetpub\wwwroot\imghost\#SecureCheck.txtUserName#
  NAMECONFLICT=MAKEUNIQUE ACCEPT=text/html
 
  What happens if someone tries to upload a file that isn't on the
accept
  list (like a jpg)?  Does a CF error page display?  I'm new to working
with
  CFFILE and I'm not even sure if I'm asking the right question.  Any help
  would be greatly appreciated.  Thanks!
 
  Scott Wolf
 
 

 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http

RE: CFFILE Upload question

2003-05-30 Thread David Collie (itndac)
Hi All,

I've already sent this to Scott who asked the question but here was my
go at a custom tag for file upload feel free to hack it to
bits/comment on it's crapness but I think it is pretty much covering
everything that you are discussing if you use it and improve it,
please let me have a copy :-)

Also tests for a directory to put the file in (within your main upload
location) and createds it if there isn't one

Probably better ways of doing some of the stuff but I was fairly new to
CF at the time.  BTW developed on CF5


 Useage  

cf_rgufileupload
rguFileFieldList=elmImageUpload
rguFileMaxSizeKb=50
rguFileUploadLocation=#sIF_UploadFolderImages#
rguNameConflict=MAKEUNIQUE
rguFilePutInFolder=FormID#SESSION.iIF_FormID#


 Start of custom tag  


cfparam name=ATTRIBUTES.rguFileFieldList default=
cfparam name=ATTRIBUTES.rguFileMaxSizeKb default=5000
cfparam name=ATTRIBUTES.rguFileInvalidExtensions
default=cfml,cfm,asp,shtml,php,cgi,jsp,exe
cfparam name=ATTRIBUTES.rguFileValidMimeTypes
default=text/comma-seperated-values,text/plain,application/msword,appli
cation/pdf,application/rtf,application/mspowerpoint,application/x-visio,
application/excel,application/x-msexcel,application/x-compressed,applica
tion/x-zip-compressed,application/vnd.ms-excel,application/x-excel,appli
cation/zip,application/x-shockwave-flash,image/png,image/jpeg,image/gif

cfparam name=ATTRIBUTES.rguFileUploadLocation default=
cfparam name=ATTRIBUTES.rguFilePutInFolder default=
cfparam name=ATTRIBUTES.rguNameConflict default=ERROR

!--- Set up parameters for file upload ---
cfset CALLER.rguFileName = 
cfset CALLER.rguFileError = 
cfset CALLER.rguFileUploadVersion = 1.1
cfset lFileError = 
cfset lFileNames = 
cfset sFileName = 
cfset iFileSize = 
cfset sFileMimeType = 
cfset sFileClientExt = 
cfset lValidNameConfilict = ERROR,SKIP,MAKEUNIQUE,OVERWRITE

!--- Check all the paramters ---
cfif ATTRIBUTES.rguFileFieldList EQ 
cfset lFileError  = ListAppend(lFileError,You must specify at
least one form field that contains a file to upload)
/cfif

cfif NOT IsNumeric(ATTRIBUTES.rguFileMaxSizeKb)
cfset lFileError  = ListAppend(lFileError,The maximum size of
the file in Kb must be numeric)
/cfif

cfif ATTRIBUTES.rguFileUploadLocation EQ 
cfset lFileError = ListAppend(lFileError,You must specify an
upload location)
/cfif

cfif ListFindNoCase(lValidNameConfilict,ATTRIBUTES.rguNameConflict,,)
EQ 0
cfset lFileError = ListAppend(lFileError,You must specify a
valid name conflict parameter (Valid: #lValidNameConfilict#))
/cfif
cfif lFileError GT 
cfset CALLER.rguFileError = lFileError
cfexit
/cfif

!--- Test for the Base Upload directory ---
cfif DirectoryExists(ATTRIBUTES.rguFileUploadLocation) EQ False
cfset CALLER.rguFileError = ListAppend(CALLER.rguFileError,The
upload location you have specified does not exist)
cfexit
/cfif

!--- Original Upload Folder exists, see if we need to put it in a
specific
folder and if so test for it ---
cfif ATTRIBUTES.rguFilePutInFolder GT 
cfif
DirectoryExists(#ATTRIBUTES.rguFileUploadLocation#\#ATTRIBUTES.rguFileP
utInFolder#) EQ False
cftry
cfdirectory action=create
directory=#ATTRIBUTES.rguFileUploadLocation#\#URLEncodedFormat(ATTRIBUT
ES.rguFilePutInFolder)#
cfcatch type=ANY
cfset CALLER.rguFileError =
ListAppend(CALLER.rguFileError,Unable to create sub directory for file
upload)
cfexit
/cfcatch
/cftry
/cfif
cfset rguFileFullPath =
#ATTRIBUTES.rguFileUploadLocation#\#URLEncodedFormat(ATTRIBUTES.rguFile
PutInFolder)#
cfelse
cfset rguFileFullPath = #ATTRIBUTES.rguFileUploadLocation#
/cfif

!--- Now that the proper location has been established, can upload file
---
cfloop list=#ATTRIBUTES.rguFileFieldList# index=sFileField
delimiters=,
cfif Evaluate(FORM.#sFileField#) GT 
cfset bFileUploaded = True
cftry
cffile action=upload fileField=#sFileField#
destination=#rguFileFullPath#
nameConflict=#ATTRIBUTES.rguNameConflict#
cfcatch type=ANY
cfset bFileUploaded = False
/cfcatch
/cftry

cfif bFileUploaded EQ True
!--- File was uploaded ok, next get all the
info about the newly uploaded file ---
cfset sFileName = cffile.serverFile
cfset iFileSize = ((cffile.fileSize)/1024)
cfset sFileMimeType = cffile.contentSubType 
/  cffile.contentSubType
cfset sFileClientExt = cffile.ClientFileExt

cfset bValidFile = True
!--- Now 

RE: CFFILE Upload question

2003-05-29 Thread Miller, Kevin
Try it.  :)

Kevin

-Original Message-
From: Scott Wolf [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 2:14 PM
To: CF-Talk
Subject: CFFILE Upload question


If I specify MIME types in the ACCEPT attribute such as:

CFFILE ACTION=UPLOAD FILEFIELD=Form.Upload1 
DESTINATION=C:\Inetpub\wwwroot\imghost\#SecureCheck.txtUserName# 
NAMECONFLICT=MAKEUNIQUE ACCEPT=text/html

What happens if someone tries to upload a file that isn't on the accept list (like a 
jpg)?  Does a CF error page display?  I'm new to working with CFFILE and I'm not even 
sure if I'm asking the right question.  Any help would be greatly appreciated.  Thanks!

Scott Wolf

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: CFFILE Upload question

2003-05-29 Thread Bryan Love
try it and see :)

+---+
Bryan Love
  Database Analyst
  Macromedia Certified Professional
  Internet Application Developer
TeleCommunication Systems
[EMAIL PROTECTED]
+---+

...'If there must be trouble, let it be in my day, that my child may have
peace'...
- Thomas Paine, The American Crisis

Let's Roll
- Todd Beamer, Flight 93



-Original Message-
From: Scott Wolf [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 2:14 PM
To: CF-Talk
Subject: CFFILE Upload question


If I specify MIME types in the ACCEPT attribute such as:

CFFILE ACTION=UPLOAD FILEFIELD=Form.Upload1
DESTINATION=C:\Inetpub\wwwroot\imghost\#SecureCheck.txtUserName#
NAMECONFLICT=MAKEUNIQUE ACCEPT=text/html

What happens if someone tries to upload a file that isn't on the accept
list (like a jpg)?  Does a CF error page display?  I'm new to working with
CFFILE and I'm not even sure if I'm asking the right question.  Any help
would be greatly appreciated.  Thanks!

Scott Wolf

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: CFFILE Upload question

2003-05-29 Thread Scott Wolf
Actually.let me be more specific.

I tried it and it gives a CF error message.  What can I do to avoid that?  I
just want to redirect the user back to the upload form and have a message
display at the top saying something like Uploading this file type is not
allowed.  You may only upload images and audio clips.

That's where I really need the help.

(or was that response supposed to be some sort of CFTRY pun? :P  )

Scott
- Original Message - 
From: Bryan Love [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 5:36 PM
Subject: RE: CFFILE Upload question


 try it and see :)

 +---+
 Bryan Love
   Database Analyst
   Macromedia Certified Professional
   Internet Application Developer
 TeleCommunication Systems
 [EMAIL PROTECTED]
 +---+

 ...'If there must be trouble, let it be in my day, that my child may have
 peace'...
 - Thomas Paine, The American Crisis

 Let's Roll
 - Todd Beamer, Flight 93



 -Original Message-
 From: Scott Wolf [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 28, 2003 2:14 PM
 To: CF-Talk
 Subject: CFFILE Upload question


 If I specify MIME types in the ACCEPT attribute such as:

 CFFILE ACTION=UPLOAD FILEFIELD=Form.Upload1
 DESTINATION=C:\Inetpub\wwwroot\imghost\#SecureCheck.txtUserName#
 NAMECONFLICT=MAKEUNIQUE ACCEPT=text/html

 What happens if someone tries to upload a file that isn't on the accept
 list (like a jpg)?  Does a CF error page display?  I'm new to working with
 CFFILE and I'm not even sure if I'm asking the right question.  Any help
 would be greatly appreciated.  Thanks!

 Scott Wolf

 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: CFFILE Upload question

2003-05-29 Thread Matthew Walker
I would be inclined to add a JavaScript check also. Saves the user having to
upload the file. Note that you can't clear the field with JS, but you can
clear the whole form (reset()) which is useful if the upload is the only
field on the form. 

 -Original Message-
 From: Scott Wolf [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 29 May 2003 9:14 a.m.
 To: CF-Talk
 Subject: CFFILE Upload question
 
 If I specify MIME types in the ACCEPT attribute such as:
 
 CFFILE ACTION=UPLOAD FILEFIELD=Form.Upload1
 DESTINATION=C:\Inetpub\wwwroot\imghost\#SecureCheck.txtUserName#
 NAMECONFLICT=MAKEUNIQUE ACCEPT=text/html
 
 What happens if someone tries to upload a file that isn't on the accept
 list (like a jpg)?  Does a CF error page display?  I'm new to working with
 CFFILE and I'm not even sure if I'm asking the right question.  Any help
 would be greatly appreciated.  Thanks!
 
 Scott Wolf
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: CFFILE Upload question

2003-05-29 Thread Ewok
!--- if there is any problem during upload wrong file type, no file, paths,
permissions... whatever, the user sees the error message #errmsg# ---

cftry
 CFFILE ACTION=UPLOAD FILEFIELD=Form.Upload1
DESTINATION=C:\Inetpub\wwwroot\imghost\#SecureCheck.txtUserName#
NAMECONFLICT=MAKEUNIQUE ACCEPT=text/html
 cfcatch type=any
  cfset errmsg = Problemos problemos problemos
 /cfcatch
/cftry

cfif isdefined('errmsg')
cfoutput#errmsg#/cfoutput
/cfif

or you could redirect to the form with something like cflocation
url=form.cfm?errmsg=#errmsg# addtoken=no right after the cfset
errmsg...

- Original Message -
From: Matthew Walker [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 3:32 PM
Subject: RE: CFFILE Upload question


 I would be inclined to add a JavaScript check also. Saves the user having
to
 upload the file. Note that you can't clear the field with JS, but you can
 clear the whole form (reset()) which is useful if the upload is the only
 field on the form.

  -Original Message-
  From: Scott Wolf [mailto:[EMAIL PROTECTED]
  Sent: Thursday, 29 May 2003 9:14 a.m.
  To: CF-Talk
  Subject: CFFILE Upload question
 
  If I specify MIME types in the ACCEPT attribute such as:
 
  CFFILE ACTION=UPLOAD FILEFIELD=Form.Upload1
  DESTINATION=C:\Inetpub\wwwroot\imghost\#SecureCheck.txtUserName#
  NAMECONFLICT=MAKEUNIQUE ACCEPT=text/html
 
  What happens if someone tries to upload a file that isn't on the
accept
  list (like a jpg)?  Does a CF error page display?  I'm new to working
with
  CFFILE and I'm not even sure if I'm asking the right question.  Any help
  would be greatly appreciated.  Thanks!
 
  Scott Wolf
 
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: cffile upload with macs and pc's

2001-06-22 Thread Massimo Foti

For similar needs I use a generic snippet:

!--- Left and Right trim form values ---
cfloop collection=#form# item=i
 cfset tmt_format_form=StructUpdate(form,i,Trim(form[i]))
/cfloop

Massimo


Larry C. Lyons [EMAIL PROTECTED] wrote in message
 Try encapsulating all your form variables with a trim, as in
 TRIM(form.formName) - when processing the forms. From what I understand
 IE for the mac tends to add spaces to the form values.




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFFILE upload and accept attribute

2001-05-25 Thread Massimo Foti

Thanks, I am going to try it, still it doesn't explain why the examples
below fails:

accept=image/jpg

accept=text/html

accept=application/msword

The docs also reports:

ACCEPT
Optional. Use to limit what types of files will be accepted. Enter one or
more MIME types, each separated by comma, of the file types you want to
accept. For example, to allow uploads of GIF and Microsoft Word files,
enter:

ACCEPT=image/gif, application/msword


It's a know issue? I searched Allaire's website without any luck...

Again, thanks

Massimo




Bryan LaPlante [EMAIL PROTECTED] wrote in message
news:001b01c0e562$5ff0$[EMAIL PROTECTED]...
 at run time file upload will only take one file extension at a time. The
 work around is to define your file types in a list and then only use
cffile
 if the extension is appropriate.

 extensionlist=img,jpg,txt
 cfif listcontains(extensionlist, server.fileExtension)
 cffile
 /cfif

 Bryan
..com/index.cfm?sidebar=lists





~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFFILE UPLOAD

2000-11-01 Thread Chad Elley

I had the same problem before... couldn't figure it out.  Ran into the same
problem with some complex queries.  After exhausting all of my known
possibilities... I reinstalled CF Server and everything worked fine.
Haven't had any problems since.

Chad



-Original Message-
From: Sim Graves [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 01, 2000 11:02 AM
To: CF-Talk
Subject: CFFILE UPLOAD


We're running CF4.5 NTserver 4.0 SP6 (don't say it, I know SP6=Bad).
When we use CFFILE to upload a file, the file increases the size of
coldfusion.exe and never decreases, even after the file is written to
the disk. After a few uploads all of our 500megs of RAM is gone.


At the Allaire forum all I could find was a suggestion to drop CFFILE
and use PERL.  This can't be the only solution (I hope).

Any suggestions will be greatly appreciated.

Sincerely,

Sim Graves


Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]


Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]