Re: File Upload/Management

2015-04-01 Thread Russ Michaels

There is a cffilemanager, also if you look on the Ckeditor site they also
do a file manager, don't recall if there is a xf version. Tinymce also do
one I believe.


On Wed, Apr 1, 2015 at 21:03 PM, Robert Harrison  wrote:


I have a client who wants to be able to manage a file library on the server
with multi-file uploads, file renaming, and directory organization.

I've used Plupload and it's a good tool for multi file uploads, but I'm not
really familiar with any tools that allows for directory management on the
server. They want to be able to browse, upload, rename, and add descriptions
of files; almost like an FTP program but something that runs in the browser
and can be integrated into forms.

Anyone familiar with any plugs-ins or third-party packages that may be
useful...  any links to any packages you may know of would be helpful.

Thanks

Robert Harrison
Full Stack Developer
AIMG
rharri...@aimg.com 
Main Office: 704-321-1234  ext.118
Direct Line: 516-302-4345
www.aimg.com





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


RE: File Upload with Chunk Method

2014-07-03 Thread UXB

>> I am trying to implement a file upload utilizing Plupload and its chunk
methodology 

>> I can't seem to solve for when the user opens a new browser window and
proceeds 
>> to upload the same file OR file with the same name as is already
uploading.  

Just in case anyone might find this of interest I finally found a way,
thanks to Maureen in another thread, to attach a UUID or unique file ID to
the multipart upload form fields in the Plupload jQuery uploader queue
widget implementation.  Thanks to an article I found by Ben Nadel
(http://www.bennadel.com/blog/2506-storing-per-file-multipart-params-in-the-
plupload-queue.htm) 
I was able to hook into the widget events and inject new multi-part
parameters for each file in the queue and then write them on the server
using the UUID as a file name, check to see if another file of the same name
exists and re-name the new file with an incremented file name.

Here is the JS for the PLupload queue widget: (note the uuid(); function
script is in my other post)

// Retrieving a reference to plupload.Uploader object
var uploader = $('#uploader').pluploadQueue();
uploader.bind('BeforeUpload', function(up) {
 up.settings.multipart_params.fileuuid = uuid();
});

And on the server side:






















This will NOT work with the Jquery UI widget implementation since they don't
seem to (easily) expose the events needed like 'BeforeUpload'.

I hope this helps someone.



Dennis Powers
UXB Internet - A website Design and Hosting Company
P.O. Box 6028, Wolcott, CT 06716 - T:203-879-2844
W: http://www.uxbinternet.com
W: http://www.ctbusinesslist.com


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


Re: File Upload > uploading open file

2011-03-08 Thread Pete Freitag

Hi Don,

The mime type of the file is determined by the browser (client side), and
then sent in the HTTP request to upload the file. ColdFusion uses the same
mime type sent by the browser in cffile. So it sounds like the accept
attribute of cffile is causing this exception to be thrown.

Try adding this mime type to the cffile accept attribute list, and then make
sure you are validating the file extension of the uploaded file to be doc or
docx.


--
Pete Freitag - Adobe Community Professional
http://foundeo.com/ - ColdFusion Consulting & Products
http://petefreitag.com/ - My Blog
http://hackmycf.com - Is your ColdFusion Server Secure?


On Mon, Mar 7, 2011 at 11:50 AM, Don  wrote:

>
> Hi Folks =)
>
> Trying to upload a file ( word doc ) that is concurrently OPEN in the OS.
>
> Upon upload attempt via cffile coldfusion is seemingly returning a mime
> type error:
>
> "The MIME type of the uploaded file application/octet-stream was not
> accepted by the server."
>
> is there a way to prevent (open) files from being uploaded?
>
> how would I ignore/bypass this error so as to actually upload the original
> file?
>
> 

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


Re: file upload - preventing double or more full stops in file name

2011-03-07 Thread Ian Skinner

On 3/7/2011 12:52 PM, Don wrote:
> 200
> Content-Disposition: form-data; name="b_file"; filename="C:\Documents and 
> Settings\dsdfsd\Desktop\clean up\test.docupload.doc"


And that is different from the cffile.clientFile property?  Do note that 
cffile.clientFile is the full file name, cffile.clientFileName is the 
file name with the extension (i.e. the part after the list 'full stop' 
as you call it) stripped off.



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


Re: file upload - preventing double or more full stops in file name

2011-03-07 Thread Don

William, Ah I get you. 

since the extension will be cut off and placed within another variable all I 
would have to do post file upload is search the server.filename for a(.). Easy.

Cheers.


> Please have a look at this post: http://www.williamoncoldfusion.
> com/index.php/knowledgebase/file-uploading
> 
> If you are referring to the cffile.serverfilename key that is 
> available after the cffile upload command, that brings back somefile.
> mack, the extension is in a different key off of cffile of 
> serverfileext.  checkout this page as well: http://livedocs.adobe.
> com/coldfusion/8/htmldocs/help.html?content=Tags_f_10.html
> 
> 
> --
> William E. Seiter
> 
> 
> On Mar 7, 2011, Don  wrote: 
> 
> 
> > > Why do you need to do this before you process it with CFFILE?
> 
> Because once its uploaded the server hacks off the last (.)
> 
> For example:
> 
> original file: somefile.mack.txt
> 
> renamed file on server: somefile.mack
> 
> 
> > > I would like to retrieve the original path of the file upload for 
> 
> > the purposes of grabbing the initial file name and then checking to 
> 
> > see how many full
> > > stops (.) are in the original file.
> > >
> > > I need this to happen before I process it via . Right now 
> 
> > the form data posts back in a  > b_original_form_filefield#>
> > > as:
> > >
> > > C:\JRun4\servers\cfusion25\SERVER-INF\temp\cfusion.
> > war-tmp\neotmp4910092545170934955.tmp
> > >
> > > which is sort of useless for my needs.
> > >
> > > Is there a workaround?
> > 
> > Why do you need to do this before you process it with CFFILE? All 
> > that
> > happens when you use CFFILE ACTION="UPLOAD" is that CF writes the 
> > file
> > to a specified location on the filesystem. The file has already 
> been
> > received by the web server, and stored in a temporary file location.
> 
> > So, write the file to the filesystem in one place, then move it
> > somewhere else with a subsequent CFFILE if you really want to.
> > 
> > Dave Watts, CTO, Fig Leaf Software
> > http://www.figleaf.com/
> > http://training.figleaf.com/
> > 
> > Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
> > GSA Schedule, and provides the highest caliber vendor-authorized
> > instruction at our training centers, online, or onsite.
> 
> 


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


Re: file upload - preventing double or more full stops in file name

2011-03-07 Thread Don

Thanks guys.

IAN this caught my attention:

"The client reads the file from the user's file system and encrypts it 
into the header of the request"

I've been using fiddler to view the headers and see the data I want : 

200
Content-Disposition: form-data; name="b_file"; filename="C:\Documents and 
Settings\dsdfsd\Desktop\clean up\test.docupload.doc"

However I don't know how to access this via coldfusion. I've tried 
gethttprequestData but unfortunatley I think by that point my window of 
opportunity had past. somehow need to get at the request at an earlier stage.





> On 3/7/2011 11:40 AM, Don wrote:
> >>> Why do you need to do this before you process it with CFFILE?
> > Because once its uploaded the server hacks off the last (.)
> >
> > For example:
> >
> > original file: somefile.mack.txt
> >
> > renamed file on server: somefile.mack
> 
> Well, as Dave indicated, ColdFusion is not actually involved in the 
> file 
> upload.  No matter that the parameter of the  tag is called.  
> 
> The flow is:
> 
> User picks file with client (i.e. browser) file form control.
> 
> The user submits the request.
> 
> The client reads the file from the user's file system and encrypts it 
> 
> into the header of the request.
> 
> It then sends the request to the web server (i.e. IIS, Apache, etc).
> 
> The web server decrypts the file from the header to a temporary 
> location. 
> (C:\JRun4\servers\cfusion25\SERVER-INF\temp\cfusion.
> war-tmp\neotmp4910092545170934955.tmp) 
> for example.
> 
> The web server then tells ColdFusion about the uploaded file and where 
> 
> it was.
> 
> If you want to do anything with the file data before the last step, 
> you 
> will either have to have code running on the Client system OR you 
> might 
> be able to get some of the data from the raw request headers.


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


Re: file upload - preventing double or more full stops in file name

2011-03-07 Thread Ian Skinner

On 3/7/2011 11:40 AM, Don wrote:
>>> Why do you need to do this before you process it with CFFILE?
> Because once its uploaded the server hacks off the last (.)
>
> For example:
>
> original file: somefile.mack.txt
>
> renamed file on server: somefile.mack

Well, as Dave indicated, ColdFusion is not actually involved in the file 
upload.  No matter that the parameter of the  tag is called.  
The flow is:

User picks file with client (i.e. browser) file form control.

The user submits the request.

The client reads the file from the user's file system and encrypts it 
into the header of the request.

It then sends the request to the web server (i.e. IIS, Apache, etc).

The web server decrypts the file from the header to a temporary 
location. 
(C:\JRun4\servers\cfusion25\SERVER-INF\temp\cfusion.war-tmp\neotmp4910092545170934955.tmp)
 
for example.

The web server then tells ColdFusion about the uploaded file and where 
it was.

If you want to do anything with the file data before the last step, you 
will either have to have code running on the Client system OR you might 
be able to get some of the data from the raw request headers.


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


Re: Re: file upload - preventing double or more full stops in file name

2011-03-07 Thread William Seiter

Please have a look at this post: 
http://www.williamoncoldfusion.com/index.php/knowledgebase/file-uploading

If you are referring to the cffile.serverfilename key that is available after 
the cffile upload command, that brings back somefile.mack, the extension is in 
a different key off of cffile of serverfileext.  checkout this page as well: 
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_f_10.html


--
William E. Seiter


On Mar 7, 2011, Don  wrote: 


> > Why do you need to do this before you process it with CFFILE?

Because once its uploaded the server hacks off the last (.)

For example:

original file: somefile.mack.txt

renamed file on server: somefile.mack


> > I would like to retrieve the original path of the file upload for 
> the purposes of grabbing the initial file name and then checking to 
> see how many full
> > stops (.) are in the original file.
> >
> > I need this to happen before I process it via . Right now 
> the form data posts back in a  b_original_form_filefield#>
> > as:
> >
> > C:\JRun4\servers\cfusion25\SERVER-INF\temp\cfusion.
> war-tmp\neotmp4910092545170934955.tmp
> >
> > which is sort of useless for my needs.
> >
> > Is there a workaround?
> 
> Why do you need to do this before you process it with CFFILE? All 
> that
> happens when you use CFFILE ACTION="UPLOAD" is that CF writes the 
> file
> to a specified location on the filesystem. The file has already been
> received by the web server, and stored in a temporary file location.
> So, write the file to the filesystem in one place, then move it
> somewhere else with a subsequent CFFILE if you really want to.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> http://training.figleaf.com/
> 
> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
> GSA Schedule, and provides the highest caliber vendor-authorized
> instruction at our training centers, online, or onsite.




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


Re: file upload - preventing double or more full stops in file name

2011-03-07 Thread Dave Watts

>> > Why do you need to do this before you process it with CFFILE?
>
> Because once its uploaded the server hacks off the last (.)
>
> For example:
>
> original file: somefile.mack.txt
>
> renamed file on server: somefile.mack

By the time your server-side script runs, the file has already been
uploaded. The CFFILE tag just processes the already-uploaded file.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

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


Re: file upload - preventing double or more full stops in file name

2011-03-07 Thread Don

> > Why do you need to do this before you process it with CFFILE?

Because once its uploaded the server hacks off the last (.)

For example:

original file: somefile.mack.txt

renamed file on server: somefile.mack


> > I would like to retrieve the original path of the file upload for 
> the purposes of grabbing the initial file name and then checking to 
> see how many full
> > stops (.) are in the original file.
> >
> > I need this to happen before I process it via . Right now 
> the form data posts back in a  b_original_form_filefield#>
> > as:
> >
> > C:\JRun4\servers\cfusion25\SERVER-INF\temp\cfusion.
> war-tmp\neotmp4910092545170934955.tmp
> >
> > which is sort of useless for my needs.
> >
> > Is there a workaround?
> 
> Why do you need to do this before you process it with CFFILE? All 
> that
> happens when you use CFFILE ACTION="UPLOAD" is that CF writes the 
> file
> to a specified location on the filesystem. The file has already been
> received by the web server, and stored in a temporary file location.
> So, write the file to the filesystem in one place, then move it
> somewhere else with a subsequent CFFILE if you really want to.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> http://training.figleaf.com/
> 
> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
> GSA Schedule, and provides the highest caliber vendor-authorized
> instruction at our training centers, online, or onsite.


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


Re: file upload - preventing double or more full stops in file name

2011-03-07 Thread Dave Watts

> I would like to retrieve the original path of the file upload for the 
> purposes of grabbing the initial file name and then checking to see how many 
> full
> stops (.) are in the original file.
>
> I need this to happen before I process it via . Right now the form 
> data posts back in a 
> as:
>
> C:\JRun4\servers\cfusion25\SERVER-INF\temp\cfusion.war-tmp\neotmp4910092545170934955.tmp
>
> which is sort of useless for my needs.
>
> Is there a workaround?

Why do you need to do this before you process it with CFFILE? All that
happens when you use CFFILE ACTION="UPLOAD" is that CF writes the file
to a specified location on the filesystem. The file has already been
received by the web server, and stored in a temporary file location.
So, write the file to the filesystem in one place, then move it
somewhere else with a subsequent CFFILE if you really want to.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

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


Re: File Upload Security

2011-01-18 Thread Matt Quackenbush

As I stated earlier in reply to Ray, I too prefer this.customTagPaths.  My
suggestion was actually based upon my not-so-hot memory from a previous read
through of the server requirements.  I was thinking that support was focused
on CF 6.1+, but I see that it is actually based on CF8+, with the following
footnote:

"* ColdFusion 6.1 and 7 supported (on servers without a "/" mapping) with
documented modifications to code usage."

That is apparently where I got my wires crossed.  Anyways, yeah,
this.customTagPaths == more better.  Sorry for the noise.  :-)


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


Re: File Upload Security

2011-01-18 Thread Steve Bryant

Mark,

Thanks.

I really do appreciate all of the advice. It was really helpful.

Steve

>Steve,
>
>Nice job looks like you took that file security thing to heart.
>
>-mk 

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


Re: File Upload Security

2011-01-18 Thread Steve Bryant

Ray,

The next sentence in the documentation starts with "This isn't required". Based 
on Matt's advice, I also added a page to the documentation detailing all of the 
options for custom tag use (CustomTags folder, This.CustomTagPaths , CFIMPORT, 
CFMODULE).

I prefer This.CustomTagPaths as well.

Thanks,

Steve

>> "This configuration would require moving custom tags into the server-wide
>> custom tags path."
>>
>> If you use  to call your tags instead of the  syntax,
>> you do not need to move the tags into the server-wide custom tags path.  It
>> is for this exact reason that I always use .
>
>But of course - any code CF8 and higher can skip that and just use
>this.customtagpaths. That's even better imo.
>
>-ra

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


RE: File Upload Security

2011-01-18 Thread Mark A. Kruger

Steve,

Nice job looks like you took that file security thing to heart.

-mk


-Original Message-
From: Steve Bryant [mailto:st...@bryantwebconsulting.com] 
Sent: Tuesday, January 18, 2011 10:09 AM
To: cf-talk
Subject: File Upload Security


When I released my Neptune framework a few weeks ago, you guys were kind
enough to give me some constructive feedback on file upload security. I have
made some changes in response to that feedback and I would love to find out
what everyone thinks about them.

* Added a file.cfm to serve up uploaded files securely (using CFCONTENT)

* Changed a default setting so that files are served up by file.cfm by
default (I may change this back, however).

* Added a page about file uploads in the documentation.
http://www.bryantwebconsulting.com/docs/neptune/file-uploads.cfm

* Added notes to the installation page recommending storing files outside of
the web root.
http://www.bryantwebconsulting.com/docs/neptune/installation.cfm

Full blog entry:
http://www.bryantwebconsulting.com/blog/index.cfm/2011/1/18/Neptune-Beta-15

Any and all feedback is welcome and appreciated.

Thanks,

Steve 



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


Re: File Upload Security

2011-01-18 Thread Matt Quackenbush

On Tue, Jan 18, 2011 at 3:40 PM, Raymond Camden wrote:

>
> > "This configuration would require moving custom tags into the server-wide
> > custom tags path."
> >
> > If you use  to call your tags instead of the  syntax,
> > you do not need to move the tags into the server-wide custom tags path.
>  It
> > is for this exact reason that I always use .
>
> But of course - any code CF8 and higher can skip that and just use
> this.customtagpaths. That's even better imo.
>

Agreed.  But if you are supporting pre-CF8 users

;-)


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


Re: File Upload Security

2011-01-18 Thread Raymond Camden

> "This configuration would require moving custom tags into the server-wide
> custom tags path."
>
> If you use  to call your tags instead of the  syntax,
> you do not need to move the tags into the server-wide custom tags path.  It
> is for this exact reason that I always use .

But of course - any code CF8 and higher can skip that and just use
this.customtagpaths. That's even better imo.

-ra

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


Re: File Upload Security

2011-01-18 Thread Matt Quackenbush

Rock on.  :-)


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


Re: File Upload Security

2011-01-18 Thread Steve Bryant

Matt,

Thanks for the kind words.

You are certainly right that I didn't do a good job in outlining the options 
available for custom tag usage in the documentation.

So, I changed the installation page to link to a new page on custom tags.

http://www.bryantwebconsulting.com/docs/neptune/installation.cfm
http://www.bryantwebconsulting.com/docs/neptune/custom-tags.cfm

Thanks for the input,

Steve

>Steve,
>
>First of all, I think it was a very wise move on your part to make these
>changes with regard to uploads.  Kudos for listening to constructive
>criticism and not becoming totally defensive and dismissive about it!  :-)
>
>I have not read through all of the material yet, but I had a quick
>comment/suggestion about the following statement:
>
>"This configuration would require moving custom tags into the server-wide
>custom tags path."
>
>If you use  to call your tags instead of the  syntax,
>you do not need to move the tags into the server-wide custom tags path.  It
>is for this exact reason that I always use .
>
>HTH 

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


Re: File Upload Security

2011-01-18 Thread Matt Quackenbush

Steve,

First of all, I think it was a very wise move on your part to make these
changes with regard to uploads.  Kudos for listening to constructive
criticism and not becoming totally defensive and dismissive about it!  :-)

I have not read through all of the material yet, but I had a quick
comment/suggestion about the following statement:

"This configuration would require moving custom tags into the server-wide
custom tags path."

If you use  to call your tags instead of the  syntax,
you do not need to move the tags into the server-wide custom tags path.  It
is for this exact reason that I always use .

HTH


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


Re: File Upload - Changing MIME Types

2010-09-29 Thread Dave Watts

> As I understand it, the files are not actually "sent" in any MIME type, per
> se, but the receiving browser interprets MIME type based on its coding,
> which, as you found out, is determined by both OS and browser settings.

No, I don't think this is correct.

When downloading a file from a web server, the web server does
generally specify the MIME type. The browser may ignore that and treat
the file as if it were a different MIME type, but the server does
specify a MIME type for static files automatically.

When uploading a file to a web server (which is the basis for the
original question) the browser builds a multipart MIME request, which
specifies the MIME type for each uploaded file.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

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


Re: File Upload - Changing MIME Types

2010-09-29 Thread Matt Quackenbush

Thanks, Jason.  That is essentially what I wound up doing.  :-)


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


Re: File Upload - Changing MIME Types

2010-09-28 Thread Jacob Munson

>From what I understand, the browser can send whatever mime type it wants.
And yes, there are security concerns here.  In my experience, dealing with
mime types is a pain in the  because browsers don't always seem to
follow a standard when processing files.  I think I found a java library
that did a good job at identifying files (after the upload).  I know that
you can't trust the mime type that is sent from the browser, because it
varies depending on the user agent, as you found.

On Mon, Sep 27, 2010 at 11:56 PM, Matt Quackenbush wrote:

>
> This might be slightly off topic, but I am hoping that someone can steer me
> in the right direction.
>
> I have an upload form that should accept CSV files and nothing else.  So I
> set the following MIME types as permitted:
>
> text/csv,text/comma-separated-values,application/csv,application/x-csv
>
> I have tested files on multiple machines using multiple OS and browser
> combinations.  The exact same files work perfectly in some instances, yet
> fail in others.  Even more strange is the fact that the failures have shown
> up as different MIME types.  For example, I have seen "text/plain" and
> "application/vnd.ms-excel" and "application/octet-stream".  This whole
> thing
> leads me to two questions:
>
> 1) How can the exact same file be sent as a different MIME type depending
> upon the OS/browser combination?
>
> 2) Is it truly the security risk that it seems to be if I were to allow
> "application/octet-stream", which as I understand is essentially a binary
> format?  (The upload form and processor is behind a login, and the
> directory
> is outside of the web root, so that much is "safe".)
>
> Thanks in advance for your help.
>
>
> 

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


Re: File Upload - Changing MIME Types

2010-09-28 Thread Dave Watts

> This might be slightly off topic, but I am hoping that someone can steer me
> in the right direction.
>
> I have an upload form that should accept CSV files and nothing else.  So I
> set the following MIME types as permitted:
>
> text/csv,text/comma-separated-values,application/csv,application/x-csv
>
> I have tested files on multiple machines using multiple OS and browser
> combinations.  The exact same files work perfectly in some instances, yet
> fail in others.  Even more strange is the fact that the failures have shown
> up as different MIME types.  For example, I have seen "text/plain" and
> "application/vnd.ms-excel" and "application/octet-stream".  This whole thing
> leads me to two questions:
>
> 1) How can the exact same file be sent as a different MIME type depending
> upon the OS/browser combination?

MIME types aren't set in stone, and browsers can send whatever they
want. Because of this, filtering by MIME type is not an adequate
security measure by itself - I could upload any sort of file and say
it's, say, "application/pdf" (which frankly is a fairly insecure file
type anyway, but let's not go into that).

> 2) Is it truly the security risk that it seems to be if I were to allow
> "application/octet-stream", which as I understand is essentially a binary
> format?  (The upload form and processor is behind a login, and the directory
> is outside of the web root, so that much is "safe".)

No, it's not. The security risk is to allow uploads of untrusted files
of any type to any web-accessible directory, or even any directory
that allows execution of files (although the latter is a much smaller
risk generally). The MIME type "application/octet-stream" isn't the
only binary format, either - it's just the one that gets applied when
you have a binary file for which you don't know a better MIME type.
Since executable binaries don't have a MIME type of their own, that's
what gets applied.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or o

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


RE: File Upload - Changing MIME Types

2010-09-28 Thread Russ Michaels

Matt,

I suspect it is down to what software you have installed.
If you have Excel installed, then a .csv will be linked to excel by default
which is "application/vnd.ms-excel".
If you have no applications installed that recognize a csv file then it will
probably be " text/csv".

In order for there to be any security risk with uploaded files a hacker
would need a way to execute them after uploading, so would need to leverage
some other security hole in your application or server.
As long as there no way to do this then you should be safe to allow
"application/octet-stream".
You could additionally check the file extension after upload as well.


Regards
--
Russ Michaels
www.cfmldeveloper.com - free CFML hosting for developers
my blog: http://russ.michaels.me.uk/
skype: russmichaels




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


re: File Upload - Changing MIME Types

2010-09-28 Thread Jason Fisher

As I understand it, the files are not actually "sent" in any MIME type, per 
se, but the receiving browser interprets MIME type based on its coding, 
which, as you found out, is determined by both OS and browser settings.  As 
far as I know, there's no way around it, especially since the browser only 
guesses the MIME type based on the file extension, meaning that an image 
file that gets renamed to myImage.gif.txt, for example, will be read as 
text/plain even though it's really a GIF.


Off the top of my head, I would say that to validate whether it's a CSV, 
upload to a web-safe directory, then verify that the file extension is 
either txt or csv, then try to parse it.  If either of the validations 
fail, then it's probably not a CSV, otherwise go ahead and import it.






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


Re: File Upload with CFKeditor in CF8

2010-01-14 Thread Pete Freitag

Hi Mallory,

If you have applied the security hotfix (hf801-77218) it will actually block
any CFM request matching /fckeditor/editor/filemanager/ anywhere in the URI,
unless you add -Dcoldfusion.fckupload=true to your JVM startup arguments.

I have posted details on my blog here:
http://www.petefreitag.com/item/718.cfm

You might have a different issue as well, but I thought that was worth
pointing out.

--
Pete Freitag
http://foundeo.com/ - ColdFusion Consulting & Products
http://petefreitag.com/ - My Blog
http://hackmycf.com - Is your ColdFusion Server Secure?


On Tue, Jan 12, 2010 at 2:07 PM, Mallory Woods wrote:

>
> Hello all,
>
> I have been trying to get file uploading working with cftextarea , CF 8.01
> on a UNIX host.
> I am able to see the entire FCKEditor toolbar and I have made the tweaks to
> get the file upload option as described here:
>
> http://www.rakshith.net/blog/?p=58
>
> However, when I try to upload an image, I get this error:  Variable
> SENDERROR is undefined
>
> Thanks in Advance.
>
>
> 

~|
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:329679
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: File upload with cffile errors with Mac OSX

2009-06-22 Thread Mark Atkinson

IIRC some browsers on Macs add an empty space to some or all form 
fields. Use the trim function on the action page.

HTH
Mark

ColdFusion Developer wrote:
> Code I'm using for the file upload:
>
>  destination="#application.absolutePath#assets/images/userPhotos/" 
> nameconflict="makeunique" accept="image/*" />
>
> I guess you could consider it "newbyish" since it's not in a CFC or custom 
> tag, just a form processing page.
>
>   
>> The flash player on a mac sometimes needs an output to work right 
>> especially on file uploads.
>>
>> How you do this depends on how you are doing the upload... basically 
>> if you are doing it newbyish or in a cfc or custom tag.. Either show 
>> some code or just output something like one of these:
>>
>> writeOutput(1)
>> 
>
>
>
> 

~|
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:323776
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: File upload with cffile errors with Mac OSX

2009-06-22 Thread ColdFusion Developer

Code I'm using for the file upload:



I guess you could consider it "newbyish" since it's not in a CFC or custom tag, 
just a form processing page.

> The flash player on a mac sometimes needs an output to work right 
> especially on file uploads.
> 
> How you do this depends on how you are doing the upload... basically 
> if you are doing it newbyish or in a cfc or custom tag.. Either show 
> some code or just output something like one of these:
> 
> writeOutput(1)



~|
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:323774
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: File upload with cffile errors with Mac OSX

2009-06-22 Thread ColdFusion Developer

She's using Safari version 3.2.3 

~|
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:323773
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: File upload with cffile errors with Mac OSX

2009-06-20 Thread Dave l

The flash player on a mac sometimes needs an output to work right especially on 
file uploads.

How you do this depends on how you are doing the upload... basically if you are 
doing it newbyish or in a cfc or custom tag.. Either show some code or just 
output something like one of these:

writeOutput(1)


#1#



>There's a lot of different browsers you can use on a mac, might need  
>more information than that.  I use Safari and Firefox, and regularly  
>upload using cffile with no problems.
>
>
>On Jun 20, 2009, at 1:13 PM, ColdFusi
>
>> 

~|
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:323743
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: File upload with cffile errors with Mac OSX

2009-06-20 Thread Charles

There's a lot of different browsers you can use on a mac, might need  
more information than that.  I use Safari and Firefox, and regularly  
upload using cffile with no problems.


On Jun 20, 2009, at 1:13 PM, ColdFusion Developer wrote:

>
> I have a file upload application that uses cffile. It's used  
> primarily to upload photos to the server.
>
> One client who is using a Mac with OSX consistently has issues  
> uploading photos of any size (the tests she sent me are around 3MB).  
> Cffile just craps out and none of the cffile variables are set, nor  
> is the photo uploaded to the server.
>
> I can upload the same photo(s) just fine with a Windows machine. She  
> has tried various wireless and wired internet connections, as have  
> I, with the same results.
>
> Are there any known issues uploading files from a Mac w/ cffile? Has  
> anyone else run across this before?
>
> Thanks in advance!
>
> 

~|
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:323742
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: File upload suddenly stops working

2009-05-08 Thread Mosh Teitelbaum

Dennis:

Thanks for the reply.  Unfortunately, this is not a client-side issue.  The
problem appears regardless of the client computer being used.

--
Mosh Teitelbaum
evoch, LLC
http://www.evoch.com/


UXB Internet wrote:
> We had a case a while ago where a client using a similar cffile upload
> script/HTML form suddenly couldn't upload files through their admin page.
> The problem was that their anti-virus/internet security program on the
> client PC was blocking the upload and would not send the data in the
> form.




~|
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:322342
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: File upload suddenly stops working

2009-05-08 Thread Mosh Teitelbaum

Brent:

Thanks.  I have FTP access to the server so I've been able to work with the
code but not with the OS or CF Admin.  Modifying the code hasn't changed
anything so I'm fairly certain it's a server-side (permissions, etc.) issue.

--
Mosh Teitelbaum
evoch, LLC
http://www.evoch.com/


Brent Nicholas wrote:
> If you have access to the server, try taking the offending code and
> reducing it to just the bare bones to get it to work while staying in
> line with what the original code does. Once you get it to work in an
> 'uncluttered' manner, you can add everything else back in.



~|
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:322341
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: File upload suddenly stops working

2009-05-07 Thread UXB Internet

>> no longer able to upload files to their website via HTML forms.  
>> The code was written 6 (?) years ago on CF5/IIS/Win2000 using CFFILE.


We had a case a while ago where a client using a similar cffile upload
script/HTML form suddenly couldn't upload files through their admin page.
The problem was that their anti-virus/internet security program on the
client PC was blocking the upload and would not send the data in the form.

I couldn't replicate it until I went to their location and saw the issue in
person.  Temporarily disabling the firewall allowed the upload. They
eventually called Symantec tech support and was given instructions on how to
allow the post to go through. 

I see this type of thing a lot on another website that uses FTP for
download. The Internet Security programs close off port 21 by default and
most all but the basic HTTP, SMTP & POP3 ports.  Now they are blocking all
traffic not going through their own proxies and need exceptions for just
about any outbound traffic.

-Dennis



~|
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:322295
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: File upload suddenly stops working

2009-05-06 Thread Brent Nicholas

If you have access to the server, try taking the offending code and reducing it 
to just the bare bones to get it to work while staying in line with what the 
original code does. Once you get it to work in an 'uncluttered' manner, you can 
add everything else back in. 

Yeah, it's a pain in the butt, but it'll clarify the issue.

-2cents.

BN 

~|
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:322234
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: File upload suddenly stops working

2009-05-05 Thread Mosh Teitelbaum

Matt Robertson wrote:
> No not at all.  I was just throwing out a potential culprit, as in "if
> I haven't changed anything, what could have changed automatically on
> me?"

The problem here is that more than just some patches has changed except the
code and, from my understanding, the version of CF being used.  As I
mentioned in my original email, about half a year back, the hosting company
switched the site to a new server which has Win2k3 (instead of Win2k).  They
say that CF5 is being used on both servers but, with the switch, there could
be changes in the CF server settings.  I don't know if the directory
structure their using for hosted sites is the same from the old server to
the new.

There are so many things that could be different, none of which I have
access to, that I was hoping someone could shed some light based on the
error message being returned.

> Have you checked to make sure your cgi.request_method is "post" like
> you think it is?  Sounds like you have already checked the form scope
> exists.

Yup, definitely using post.

Thanks.

--
Mosh Teitelbaum
evoch, LLC
http://www.evoch.com/




~|
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:322207
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: File upload suddenly stops working

2009-05-05 Thread Mosh Teitelbaum

Al Musella, DPM wrote:
> It might be the security settings on the disk where the temp file is
> stored, or in the directory you ultimately save it to.  Maybe
> somebody at the hosting place decided to tighten up security.

Yeah, I mentioned that to the hosting company's tech guys.  They checked and
said everything looks as it should.

Thanks.

--
Mosh Teitelbaum
evoch, LLC
http://www.evoch.com/




~|
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:322206
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: File upload suddenly stops working

2009-05-05 Thread Al Musella, DPM

It might be the security settings on the disk where the temp file is 
stored, or in the directory you ultimately save it to.  Maybe 
somebody at the hosting place decided to tighten up security.



~|
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:322205
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: File upload suddenly stops working

2009-05-05 Thread Matt Robertson

>
> Matt:
>
> Have you heard of any security updates that would affect CF5 in this way?

No not at all.  I was just throwing out a potential culprit, as in "if
I haven't changed anything, what could have changed automatically on
me?"

Another potential for change then, is the browser itself.  Thats
something else that updates itself automatically and is in this mix.
Any chance you can fall back to an older browser somewhere?  Perhaps
one sitting on one of your servers that you can get to via TS?  Using
a browser from a server is a sin, I know, but if ever there was a
place you can find an old browser version, thats a likely way to find
one in a snap.

Have you checked to make sure your cgi.request_method is "post" like
you think it is?  Sounds like you have already checked the form scope
exists.



-- 
-...@robertson--
Janitor, The Robertson Team
mysecretbase.com

~|
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:322202
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: File upload suddenly stops working

2009-05-05 Thread Mosh Teitelbaum

Matt:

Have you heard of any security updates that would affect CF5 in this way?

--
Mosh Teitelbaum
evoch, LLC
http://www.evoch.com/

Matt Robertson wrote:
> A Windows security update would seem to be one of the usual suspects
> when it comes to mysterious behavioral changes.




~|
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:322191
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: File upload suddenly stops working

2009-05-05 Thread Mosh Teitelbaum

Andy:

This problem has been going for at least several weeks so it doesn't appear
as if it's going to fix itself.  Another problem is that they apparently
haven't had the need to upload something for a (long) while so we don't have
any good sense of when the uploads stopped working.  We just know that it
worked in December of 2007, the last time (according to the file's date
stamp) that a file was uploaded.  So it could have "broken" anytime in the
last year-and-a-half.

--
Mosh Teitelbaum
evoch, LLC
http://www.evoch.com/

Andy Matthews wrote:
> I just had an issue with my host the other day that sounds similar. I
> was trying to login to my CMS, and the action page for the login form
> blew up.  It kept telling me that "form.username" doesn't exist.
> 
> When I tried to dump the form scope it was empty...bizarre. It "fixed
> itself" in a few hours, but I never did find out the cause.




~|
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:322190
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: File upload suddenly stops working

2009-05-05 Thread Andy Matthews

I just had an issue with my host the other day that sounds similar. I was
trying to login to my CMS, and the action page for the login form blew up.
It kept telling me that "form.username" doesn't exist.

When I tried to dump the form scope it was empty...bizarre. It "fixed
itself" in a few hours, but I never did find out the cause. 

-Original Message-
From: Mosh Teitelbaum [mailto:mosh.teitelb...@evoch.com] 
Sent: Tuesday, May 05, 2009 1:41 PM
To: cf-talk
Subject: File upload suddenly stops working


All:

 

A former client just contacted me asking for help.  Apparently they are no
longer able to upload files to their website via HTML forms.  The code was
written 6 (?) years ago on CF5/IIS/Win2000 using CFFILE.  It used to work
(for 5+ years) but all of a sudden does not.  They are now getting the
following error message whenever they try to upload a file:

 

The form field specified in the CFFILE tag (IMAGEFILEPATH) does not contain
an uploaded file. Please be sure that you

have specified the correct form field name.

 

Checking the last-modified date of the files in question, the code hasn't
changed in years.  The HTML form is using ENCTYPE="multipart/form-data" and
the debug data shows a value of "C:\WINDOWS\TEMP\ACF4CAB.tmp" for
FORM.ImageFilePath (so it would appear something is being uploaded).  In
talking with the hosting company, they apparently moved the site about 1/2 a
year ago from a Win2000 server to a Win2003 server but didn't change
anything else.  The code still works perfectly well in my test environments.

 

Does anyone have any clues as to what could be causing this problem?

 

TIA

 

--

Mosh Teitelbaum

evoch, LLC

http://www.evoch.com/

 






~|
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:322189
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: File upload suddenly stops working

2009-05-05 Thread Matt Robertson

A Windows security update would seem to be one of the usual suspects
when it comes to mysterious behavioral changes.

Just a shot in the dark.

I had a blowup today myself on some longstanding code but it was a CFX
based issue.

-- 
-...@robertson--
Janitor, The Robertson Team
mysecretbase.com

~|
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:322188
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: File upload and make unique

2009-01-09 Thread Huff, Jerome P.
 Robert,
At first glance, I thought this would work, but after looking
closely at the code, it does nothing more that what makeunique already
does, just adds a 1 to the end of the file name if not unique, thus each
time you use the routine, you end up with a file name that increases in
length by 1 char.  I may be able to adapt what you sent, by grabbing the
number at the end of upl_fle_nme, taking a val, increment that, and
replace the number into the name and then checking for prior existence.
So you have still helped me go in the right direction.

Jerome

-Original Message-
From: Robert Harrison [mailto:rob...@austin-williams.com] 
Sent: Friday, January 09, 2009 12:19 PM
To: cf-talk
Subject: RE: File upload and make unique

Assuming you are uploading from a form and the name of the file field is
"file", the routine below will do it. You will need to rename the paths
as
necessary. This routine will:

 1) Rename the file with incremental numbers (1, 2, 3, etc)
 2) Ensure the file name uses only standard characters (so it can be
used in
URL strings if you want to link to the file)
 3) Report back the final uploaded file name as the variable "upl_file"
 4) Prevent users from uploading dangerous file types (.cfm, .com, .exe,
etc.)

Hope this helps.







|:$'&@,(){}~`^!+;=[]", "", "all")#">



 































~|
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:317656
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: File upload and make unique

2009-01-09 Thread Huff, Jerome P.
This is what I was looking for thanks!  I will study the code and
integrate into our website.  Thanks again! 

-Original Message-
From: Robert Harrison [mailto:rob...@austin-williams.com] 
Sent: Friday, January 09, 2009 12:19 PM
To: cf-talk
Subject: RE: File upload and make unique

Assuming you are uploading from a form and the name of the file field is
"file", the routine below will do it. You will need to rename the paths
as
necessary. This routine will:

 1) Rename the file with incremental numbers (1, 2, 3, etc)
 2) Ensure the file name uses only standard characters (so it can be
used in
URL strings if you want to link to the file)
 3) Report back the final uploaded file name as the variable "upl_file"
 4) Prevent users from uploading dangerous file types (.cfm, .com, .exe,
etc.)

Hope this helps.







 


The
file you uploaded uses the
extension .#file_ext#.
This file type is not allowed.
The upload is aborted. 
Please return and select an acceptable file type
or zip the file before uploading.















|:$'&@,(){}~`^!+;=[]", "", "all")#">



 































~|
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:317654
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: File upload and make unique

2009-01-09 Thread Robert Harrison
Assuming you are uploading from a form and the name of the file field is
"file", the routine below will do it. You will need to rename the paths as
necessary. This routine will:

 1) Rename the file with incremental numbers (1, 2, 3, etc)
 2) Ensure the file name uses only standard characters (so it can be used in
URL strings if you want to link to the file)
 3) Report back the final uploaded file name as the variable "upl_file"
 4) Prevent users from uploading dangerous file types (.cfm, .com, .exe,
etc.)

Hope this helps.







 


The
file you uploaded uses the
extension .#file_ext#.
This file type is not allowed.
The upload is aborted. 
Please return and select an acceptable file type
or zip the file before uploading.















|:$'&@,(){}~`^!+;=[]", "", "all")#">



 





























~|
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:317653
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: File upload and make unique

2009-01-09 Thread Dave Watts
> We all know that cf8 appends a "1" to the end of the file name to make
> a unique new name, which works fine, until the file name gets to 255
> characters.  Is there a way to change this behavior?  I have a web
> application that users check out/in documents and there are some
> documents that are heavily used and are reaching a point that the names
> no longer work in windows due to the length of the names.  Anyone have
> any suggestions?

Instead of serving the file with the system-generated name, you can
just rename it yourself, if you're serving it with CF using the
CFCONTENT tag. Keep track of your file names in the database.

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!

~|
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:317652
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: File upload and make unique

2009-01-09 Thread Ben Nadel
How are you serving it up to the user? If you use CFHeader / CFContent, you
can set the filename:



-- 
Ben Nadel
Adobe Community Expert
Adobe Certified Advanced ColdFusion Developer
Manager New York ColdFusion User Group
http://www.bennadel.com

Need ColdFusion Help?
http://www.bennadel.com/Ask-Ben


~|
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:317651
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: File upload and make unique

2009-01-09 Thread Adrian Lynch
Rename it before giving it back to them. Not idea, but then you can't
control the users OS.

Adrian

> -Original Message-
> From: Huff, Jerome P. [mailto:jerome.h...@ngc.com]
> Sent: 09 January 2009 16:05
> To: cf-talk
> Subject: RE: File upload and make unique
> 
> No,
>   Coldfusion is ok, its when the user saves the file to their
> local machine, if their local path plus the file name ends up being too
> long ...
> 
> 
> -Original Message-
> From: Ben Nadel [mailto:b...@bennadel.com]
> Sent: Friday, January 09, 2009 10:58 AM
> To: cf-talk
> Subject: Re: File upload and make unique
> 
> Are you saying that ColdFusion is throwing errors during the file
> upload? Or
> is something else going on?


~|
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:317650
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: File upload and make unique

2009-01-09 Thread Huff, Jerome P.
No,
Coldfusion is ok, its when the user saves the file to their
local machine, if their local path plus the file name ends up being too
long ...


-Original Message-
From: Ben Nadel [mailto:b...@bennadel.com] 
Sent: Friday, January 09, 2009 10:58 AM
To: cf-talk
Subject: Re: File upload and make unique

Are you saying that ColdFusion is throwing errors during the file
upload? Or
is something else going on?


-- 
Ben Nadel
Adobe Community Expert
Adobe Certified Advanced ColdFusion Developer
Manager New York ColdFusion User Group
http://www.bennadel.com

Need ColdFusion Help?
http://www.bennadel.com/Ask-Ben




~|
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:317649
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: File upload and make unique

2009-01-09 Thread Ben Nadel
Are you saying that ColdFusion is throwing errors during the file upload? Or
is something else going on?


-- 
Ben Nadel
Adobe Community Expert
Adobe Certified Advanced ColdFusion Developer
Manager New York ColdFusion User Group
http://www.bennadel.com

Need ColdFusion Help?
http://www.bennadel.com/Ask-Ben


~|
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:317648
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: File upload 250 MB Discussion

2008-08-28 Thread gary gilbert
You do realize of course that this is a Coldfusion mailing list and not a 
Struts and/or JSP mailing list?



~|
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:311703
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: File upload 250 MB Discussion

2008-08-26 Thread ashwini kulkarni
Hi All
I am trying to upload the file of 1kb to 250MB. 
I had developed 2 applications
1>In Struts framework (one application)
2> and using servlets and JSP (second application)

I am using second application (using servlets and JSP ) 
when i am trying to upload locally on my machine it is working very fine and 
able to upload as much as i can
so for testing i have to upload MAX till 250MB(because it is client requirement)

All these experiments are on the development server and External IP (using 
internet)
In my application i am splitting the file say example: I am tring to upload 
100Mb of file 
step 1> on the server side i am splitting the file of 100Mb in to 1Mb and 
saving in the Temporary folder
step 2> I am joining the splitted files and then again joining to the orignal 
file (at the time of upload ) to the destination location
step 3 > Deleting the temporay folder after the joining is done 

So These are the results on Development Server (L.A.N) local area network
For --->>13Mb >>(Time Taken) 3 minutes
For --->>25Mb >>(Time Taken) 6 minutes
For --->>56Mb >>(Time Taken) 11 minutes
For --->>100Mb >>(Time Taken) 18 minutes
For --->>150Mb >>(Time Taken) 30 minutes
For --->>250Mb >>(Time Taken) 58 minutes



Similiarly
These are the results on External IP (through internet)
For --->>20Mb >>(Time Taken) 5 minutes
For --->>56Mb >>(Time Taken) 11 minutes
For --->>78Mb >>(Time Taken) 20 minutes

after that if i am tring to upload more than this i am unable to upload 
and getting this exception at the server LOG

1>org.apache.commons.fileupload.FileUploadException: Processing of 
multipart/form-data request failed. Stream ended unexpectedly

2>org.apache.commons.fileupload.FileUploadException: Processing of 
multipart/form-data request failed. Connection reset


Can any one help me how to make this programm efficient and error free
i cannot use FTP because i have to create a port which is not permitted by the 
client
can any one help me out with the execellent solution



~|
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:311652
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: File Upload: TimeOut Problems

2008-07-11 Thread Adrian Lynch
Could it be a file size limit instead of a timeout?

What does the error message say?

Adrian
www.adrianlynch.co.uk

-Original Message-
From: Robert Harrison [mailto:[EMAIL PROTECTED]
Sent: 11 July 2008 13:54
To: CF-Talk
Subject: File Upload: TimeOut Problems


On CF7, using form enctype to select a file to upload. Submits to page with
cffile to execute upload. On small/medium size files it works perfectly, but
on large (> 30Mg) page times out and I get a page cannot be found error.

Added  to both form page and cffile
processing page, but still times out at 2 minutes.

1) Where should I be looking for timeout options I can override with
cfsetting?

2) Are there any other time-out related coding options I can try?

3) Are the alternatives to CFFILE. Tried CFFTP PUTFILE, but I need
1) the rename function and 2) return of Server filename?

I'm really stuck on this one. Please help if you can.

Thanks

Robert B. Harrison
Director of Interactive services
Austin & Williams
125 Kennedy Drive, Suite 100 Hauppauge NY 11788
T : 631.231.6600 Ext. 119
F : 631.434.7022
www.austin-williams.com

Great advertising can't be either/or... It must be &.





~|
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:308926
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: file upload/virus scan

2008-04-02 Thread Tom Mullen
If you decide you need to scan uploaded files, you may wish to evaluate 
Metascan from OPSWAT (www.opswat.com).  It is an API that enables integration 
with most AV packages in the market; supported development interfaces include 
C++, COM, JAVA; sample code in C# and ASP.  Evaluation package is provided on 
request.

An interesting test would be to upload a file (exe, rar, doc) renamed as a PDF 
or JPG to a site powered by Metascan, www.filterbit.com.  Filterbit demos 
scanning by 6 AVs in parallel, plus file verification (i.e. it should catch 
that the file type has been altered).  Regards,  Tom

>OK, so I was reading a response to another question, where someone mentioned
>the importance of scanning uploaded files...I hadn't thought of that.
>
>Two questions:
>1.  If all I allow for uploads is pdf and jpg, is that still neccessary?
>
>2.  My site is on a vps so it would be all self serve...what can I use and
>how do I get it to scan the uploaded file?
>
>TIA,
>
>Mark 

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

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


Re: file upload/virus scan

2008-03-13 Thread Tom Chiverton
On Thursday 13 Mar 2008, Mark Fuqua wrote:
> 1.  If all I allow for uploads is pdf and jpg, is that still neccessary?

Yes. These formats could cause buffer overflows of vulnerable implementations, 
for instance.
You might want to check your virus scanner picks these up.

> 2.  My site is on a vps so it would be all self serve...what can I use and
> how do I get it to scan the uploaded file?

cfexecute your favourite scanner.

-- 
Tom Chiverton
Helping to proactively syndicate guinine initiatives
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

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

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


Re: File Upload "

2008-03-06 Thread James Holmes
What do cfserver.log and your other logs say about the server when it crashes?

On Fri, Mar 7, 2008 at 7:45 AM, Ryan J. Heldt <[EMAIL PROTECTED]> wrote:
> Is a 2MB file really all that ColdFusion can handle. I know we've done
>  uploads of other files (like images and PDFs) that are far bigger and
>  doesn't cause a problem. I guess to answer your question, I do have
>  smaller files that seem to upload just fine.



-- 
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;160198600;22374440;w

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


Re: File Upload "

2008-03-06 Thread Phillip Vector
It's not that coldfusion can't handle bigger files (I used to work at
a place that handled 10MB uploads daily without a hitch), it's that
the code you wrote may not be able to handle it. It could also be the
server processor may be below par for the job (more likely).

What is the code that you are using to process the data? What are the
stats of your server?

On Thu, Mar 6, 2008 at 2:45 PM, Ryan J. Heldt <[EMAIL PROTECTED]> wrote:
> Is a 2MB file really all that ColdFusion can handle. I know we've done
>  uploads of other files (like images and PDFs) that are far bigger and
>  doesn't cause a problem. I guess to answer your question, I do have
>  smaller files that seem to upload just fine.
>
>  Thanks!
>  Ryan
>
>
>  Phillip Vector wrote:
>  > If it hurts here when you do that, don't do that. :)
>  >
>  > Sorry.. Couldn't resist..
>  >
>  > Seriously though, does it have to be that big? Does it do the same on
>  > a smaller filesize?
>  >
>  > On Thu, Mar 6, 2008 at 12:37 PM, Ryan J. Heldt <[EMAIL PROTECTED]> wrote:
>  >
>  >> Greetings-
>  >>
>  >>  I'm having a problem with a file upload I would like to bounce off of
>  >>  you all. It's a Palm DBA file (~1.7MB), and when it's uploaded, it
>  >>  appears to be doing something horrendous to the server. Almost a few
>  >>  seconds after submitting the form, the screen goes blank and when I view
>  >>  the page source, all that's there is "  >>
>  >>  If I attempt to do anything on the site from that point on, the request
>  >>  takes around 30-45 seconds and it appears that the ColdFusion service
>  >>  restarts. At least I'm assuming that's what's going on because I loose
>  >>  my sessions. I tried trapping for whatever this is with a try/catch, but
>  >>  with no luck. Something tells me there's things going wrong much higher
>  >>  in the food chain.
>  >>
>  >>  Any ideas?
>  >>
>  >>  Thanks!
>  >>  Ryan
>  >>
>  >>
>  >>
>  >>
>  >
>  >
>
>  

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

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


Re: File Upload "

2008-03-06 Thread Ryan J. Heldt
Is a 2MB file really all that ColdFusion can handle. I know we've done 
uploads of other files (like images and PDFs) that are far bigger and 
doesn't cause a problem. I guess to answer your question, I do have 
smaller files that seem to upload just fine.

Thanks!
Ryan

Phillip Vector wrote:
> If it hurts here when you do that, don't do that. :)
>
> Sorry.. Couldn't resist..
>
> Seriously though, does it have to be that big? Does it do the same on
> a smaller filesize?
>
> On Thu, Mar 6, 2008 at 12:37 PM, Ryan J. Heldt <[EMAIL PROTECTED]> wrote:
>   
>> Greetings-
>>
>>  I'm having a problem with a file upload I would like to bounce off of
>>  you all. It's a Palm DBA file (~1.7MB), and when it's uploaded, it
>>  appears to be doing something horrendous to the server. Almost a few
>>  seconds after submitting the form, the screen goes blank and when I view
>>  the page source, all that's there is ">
>>  If I attempt to do anything on the site from that point on, the request
>>  takes around 30-45 seconds and it appears that the ColdFusion service
>>  restarts. At least I'm assuming that's what's going on because I loose
>>  my sessions. I tried trapping for whatever this is with a try/catch, but
>>  with no luck. Something tells me there's things going wrong much higher
>>  in the food chain.
>>
>>  Any ideas?
>>
>>  Thanks!
>>  Ryan
>>
>>
>>  
>> 
>
> 

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

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


Re: File Upload "

2008-03-06 Thread Phillip Vector
If it hurts here when you do that, don't do that. :)

Sorry.. Couldn't resist..

Seriously though, does it have to be that big? Does it do the same on
a smaller filesize?

On Thu, Mar 6, 2008 at 12:37 PM, Ryan J. Heldt <[EMAIL PROTECTED]> wrote:
> Greetings-
>
>  I'm having a problem with a file upload I would like to bounce off of
>  you all. It's a Palm DBA file (~1.7MB), and when it's uploaded, it
>  appears to be doing something horrendous to the server. Almost a few
>  seconds after submitting the form, the screen goes blank and when I view
>  the page source, all that's there is "
>  If I attempt to do anything on the site from that point on, the request
>  takes around 30-45 seconds and it appears that the ColdFusion service
>  restarts. At least I'm assuming that's what's going on because I loose
>  my sessions. I tried trapping for whatever this is with a try/catch, but
>  with no luck. Something tells me there's things going wrong much higher
>  in the food chain.
>
>  Any ideas?
>
>  Thanks!
>  Ryan
>
>
>  

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

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


Re: File upload

2008-02-06 Thread Claude Schneegans
 >>I check the file name and see if it already exists in the database.
If it does, then I return the error. If it doesn't exist, then go and
perform the  action.

This is the way you see it, but not the best and easiest way to do it.
This is the way I do it:
- upload the file and rename it on the server with a unique local name, 
ie: CreateUUID()
- store in the database both the local name and the original name.

This way, you can have several files with the same original name.
When a user retrieves a file, you can read it using the local name,
and send it under the original name, users will never see the local name.

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

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


RE: File upload

2008-02-05 Thread Rick Faircloth
Use the attribute MakeUnique="Yes" (or is it "True" ?)
to create a new filename if one exists with that filename already.

That was my point.  You can have the system generate a unique filename
for CF and the database to reference, but maintain the original filename
in the database, too, to show on-screen.

I do this all the time with Real Estate photos...

Rick

> -Original Message-
> From: Rick Sanders [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 05, 2008 10:47 AM
> To: CF-Talk
> Subject: RE: File upload
> 
> Hi Rick,
> 
> It doesn't solve the problem though. Here's the problem:
> 
> 1. User #1 uploads a file called "Movie.wmv". The file is uploaded to
> site/videos/Movie.wmv. The file is referenced in the database in the video
> file field " Movie.wmv ".
> 2. User #55 also uploads a file called "Movie.wmv" which is a totally
> different video in a totally different category. But, because it's named the
> same, it overwrites the original "Movie.wmv" file, thus making both videos
> the same.
> 
> I need to check to see if the file exists before it's uploaded, or it'll
> overwrite the existing video.
> 
> My work-around is to upload the file to a temp location then check if the
> file exists already. If not, move the file to the videos folder. If it does
> exists, delete it from temp and return an error.
> 
> Kind regards,
> 
> Rick
> 
> -Original Message-
> From: Rick Faircloth [mailto:[EMAIL PROTECTED]
> Sent: February-05-08 11:28 AM
> To: CF-Talk
> Subject: RE: File upload
> 
> Why not have the user upload the file, rename it automatically if there is
> a conflict for a name that is referred to within the database, but also
> retain
> the original filename in the database for display to users.
> 
> Rick
> 




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

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


RE: File upload

2008-02-05 Thread Rick Faircloth
You'd think if I use this all the time, as I stated, I'd be able to
get the syntax correct... NameConflict="MakeUnique", not what I wrote before.\

Too much "copy and paste"... :oP

Sorry!

Rick

> -Original Message-
> From: Will Swain [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 05, 2008 10:55 AM
> To: CF-Talk
> Subject: RE: File upload
> 
> Am I missing something? Why not just use the nameconflict="MAKEUNIQUE"
> attribute of CFFILE. This will auto rename the file if a file with that name
> already exists. No overwriting of existing files. Like Rick said.
> 
> Will
> 
> -Original Message-
> From: Rick Sanders [mailto:[EMAIL PROTECTED]
> Sent: 05 February 2008 15:47
> To: CF-Talk
> Subject: RE: File upload
> 
> Hi Rick,
> 
> It doesn't solve the problem though. Here's the problem:
> 
> 1. User #1 uploads a file called "Movie.wmv". The file is uploaded to
> site/videos/Movie.wmv. The file is referenced in the database in the video
> file field " Movie.wmv ".
> 2. User #55 also uploads a file called "Movie.wmv" which is a totally
> different video in a totally different category. But, because it's named the
> same, it overwrites the original "Movie.wmv" file, thus making both videos
> the same.
> 
> I need to check to see if the file exists before it's uploaded, or it'll
> overwrite the existing video.
> 
> My work-around is to upload the file to a temp location then check if the
> file exists already. If not, move the file to the videos folder. If it does
> exists, delete it from temp and return an error.
> 
> Kind regards,
> 
> Rick
> 
> -Original Message-
> From: Rick Faircloth [mailto:[EMAIL PROTECTED]
> Sent: February-05-08 11:28 AM
> To: CF-Talk
> Subject: RE: File upload
> 
> Why not have the user upload the file, rename it automatically if there is a
> conflict for a name that is referred to within the database, but also retain
> the original filename in the database for display to users.
> 
> Rick
> 
> > -Original Message-
> > From: Todd Rafferty [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, February 05, 2008 9:27 AM
> > To: CF-Talk
> > Subject: Re: File upload
> >
> > You're still going to run into an "valid" issue where two completely
> > different videos have the same name.  When it comes to CMS, even if
> they're
> > dupes, they're valid.  The client is responsible for weeding out the
> > duplicates.  Just getting the name (in your instance), wouldn't do you
> > any good.  It's almost like you'd also want the MD5 checksum of the
> > file as
> well
> > or something else.  There really is no way to determine if it's a
> duplicate
> > or not until it's on the server.  The name alone is not enough to go on.
> >
> > On Feb 5, 2008 9:17 AM, Rick Sanders <[EMAIL PROTECTED]> wrote:
> >
> > > Hello James,
> > >
> > > I want to grab the file name and query it in the database to see if
> > > it exists or not before the 15mb file is uploaded. This way, if the
> > > file exists, I can easily return an error and prompt the user to
> > > rename the file, or offer suggested names for the file.
> > >
> > > I've created a site for uploading videos, and there is a chance that
> > > 2 people can upload a video with the same name, but the video is
> completely
> > > different. If I could bypass the upload and just check the name then
> this
> > > would save alot of time.
> > >
> > > Kind regards,
> > > Rick
> > >
> >
> >
> >
> 
> 
> 
> 
> 
> 

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

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


Re: File upload

2008-02-05 Thread Ian Skinner
Rick Sanders wrote:
> I need to check to see if the file exists before it's uploaded, or it'll
> overwrite the existing video.
>
> Rick
Not if you use of 'nameconflict="makeunique"' parameter of the 
 tag that exists for exactly this reason.  With this 
parameter set, CF will see that 'movie.wmv' already exists and change 
the name of the next file to 'movie1.wmv' or some other string that does 
not currently exist in the file system.  It will then inform you of what 
the new file name is in the 'file.ServerFileName' structure key.  It 
will also tell you if a rename was done in the 'file.FileWasRenamed' 
structure key.

If that is your only requirement you are working hard to reinvent a 
wheel already well built into ColdFusion.

Ian

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

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


RE: File upload

2008-02-05 Thread Dave Watts
> Your ASP example says just that.  It gets the file name from 
> the HTTP header.  The reason the file name is in the HTTP 
> header is because the entire file content is in the HTTP 
> header. 

Just a minor correction, but neither the file name nor the file itself are
in the HTTP response header. They're in the HTTP response body.

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

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/

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

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


Re: File upload

2008-02-05 Thread Azadi Saryev
why like this? why not use the NAMECONFLICT attribute of CFFILE? it will 
automatically remane the uploaded file by appending a sequential number 
to it. you can then on your 'success' page show user a link to the 
created file, and/or email it to the user if you want to...
why not allow a user to upload a file only because someone before has 
uploaded a file with same name?

---
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com



Rick Sanders wrote:
> Hi Rick,
>
> It doesn't solve the problem though. Here's the problem:
>
> 1. User #1 uploads a file called "Movie.wmv". The file is uploaded to
> site/videos/Movie.wmv. The file is referenced in the database in the video
> file field " Movie.wmv ".
> 2. User #55 also uploads a file called "Movie.wmv" which is a totally
> different video in a totally different category. But, because it's named the
> same, it overwrites the original "Movie.wmv" file, thus making both videos
> the same.
>
> I need to check to see if the file exists before it's uploaded, or it'll
> overwrite the existing video.
>
> My work-around is to upload the file to a temp location then check if the
> file exists already. If not, move the file to the videos folder. If it does
> exists, delete it from temp and return an error.
>
> Kind regards,
>
> Rick
>
> -----Original Message-
> From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
> Sent: February-05-08 11:28 AM
> To: CF-Talk
> Subject: RE: File upload
>
> Why not have the user upload the file, rename it automatically if there is
> a conflict for a name that is referred to within the database, but also
> retain
> the original filename in the database for display to users.
>
> Rick
>
>   
>> -Original Message-
>> From: Todd Rafferty [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, February 05, 2008 9:27 AM
>> To: CF-Talk
>> Subject: Re: File upload
>>
>> You're still going to run into an "valid" issue where two completely
>> different videos have the same name.  When it comes to CMS, even if
>> 
> they're
>   
>> dupes, they're valid.  The client is responsible for weeding out the
>> duplicates.  Just getting the name (in your instance), wouldn't do you any
>> good.  It's almost like you'd also want the MD5 checksum of the file as
>> 
> well
>   
>> or something else.  There really is no way to determine if it's a
>> 
> duplicate
>   
>> or not until it's on the server.  The name alone is not enough to go on.
>>
>> On Feb 5, 2008 9:17 AM, Rick Sanders <[EMAIL PROTECTED]> wrote:
>>
>> 
>>> Hello James,
>>>
>>> I want to grab the file name and query it in the database to see if it
>>> exists or not before the 15mb file is uploaded. This way, if the file
>>> exists, I can easily return an error and prompt the user to rename the
>>> file,
>>> or offer suggested names for the file.
>>>
>>> I've created a site for uploading videos, and there is a chance that 2
>>> people can upload a video with the same name, but the video is
>>>   
> completely
>   
>>> different. If I could bypass the upload and just check the name then
>>>   
> this
>   
>>> would save alot of time.
>>>
>>> Kind regards,
>>> Rick
>>>
>>>   
>>
>> 
>
>
>
> 

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

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


RE: File upload

2008-02-05 Thread Dave Watts
> It doesn't solve the problem though. Here's the problem:
> 
> 1. User #1 uploads a file called "Movie.wmv". The file is 
> uploaded to site/videos/Movie.wmv. The file is referenced in 
> the database in the video file field " Movie.wmv ".
> 2. User #55 also uploads a file called "Movie.wmv" which is a 
> totally different video in a totally different category. But, 
> because it's named the same, it overwrites the original 
> "Movie.wmv" file, thus making both videos the same.
> 
> I need to check to see if the file exists before it's 
> uploaded, or it'll overwrite the existing video.
> 
> My work-around is to upload the file to a temp location then 
> check if the file exists already. If not, move the file to 
> the videos folder. If it does exists, delete it from temp and 
> return an error.

Rick's answer is basically correct. You don't need to retain the original
filename within the file system, just within the database. Just rename the
file to some pseudo-random string (that's what the NAMECONFLICT="MAKEUNQUE"
attribute of CFFILE ACTION="UPLOAD" does), then store the original name and
other metadata in the database.

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

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/

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

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


Re: File upload

2008-02-05 Thread Bruce Sorge
Why not use the makeunique option in the CFFILE tag? That way, if CF 
detects a file with the same name, it renames it automatically. Then you 
grab the serverfile name and enter that into the database.

Bruce


Rick Sanders wrote:
> Hi Rick,
>
> It doesn't solve the problem though. Here's the problem:
>
> 1. User #1 uploads a file called "Movie.wmv". The file is uploaded to
> site/videos/Movie.wmv. The file is referenced in the database in the video
> file field " Movie.wmv ".
> 2. User #55 also uploads a file called "Movie.wmv" which is a totally
> different video in a totally different category. But, because it's named the
> same, it overwrites the original "Movie.wmv" file, thus making both videos
> the same.
>
> I need to check to see if the file exists before it's uploaded, or it'll
> overwrite the existing video.
>
> My work-around is to upload the file to a temp location then check if the
> file exists already. If not, move the file to the videos folder. If it does
> exists, delete it from temp and return an error.
>
> Kind regards,
>
> Rick
>   


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

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


RE: File upload

2008-02-05 Thread Will Swain
Am I missing something? Why not just use the nameconflict="MAKEUNIQUE"
attribute of CFFILE. This will auto rename the file if a file with that name
already exists. No overwriting of existing files. Like Rick said.

Will

-Original Message-
From: Rick Sanders [mailto:[EMAIL PROTECTED] 
Sent: 05 February 2008 15:47
To: CF-Talk
Subject: RE: File upload

Hi Rick,

It doesn't solve the problem though. Here's the problem:

1. User #1 uploads a file called "Movie.wmv". The file is uploaded to
site/videos/Movie.wmv. The file is referenced in the database in the video
file field " Movie.wmv ".
2. User #55 also uploads a file called "Movie.wmv" which is a totally
different video in a totally different category. But, because it's named the
same, it overwrites the original "Movie.wmv" file, thus making both videos
the same.

I need to check to see if the file exists before it's uploaded, or it'll
overwrite the existing video.

My work-around is to upload the file to a temp location then check if the
file exists already. If not, move the file to the videos folder. If it does
exists, delete it from temp and return an error.

Kind regards,

Rick

-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED]
Sent: February-05-08 11:28 AM
To: CF-Talk
Subject: RE: File upload

Why not have the user upload the file, rename it automatically if there is a
conflict for a name that is referred to within the database, but also retain
the original filename in the database for display to users.

Rick

> -Original Message-
> From: Todd Rafferty [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 05, 2008 9:27 AM
> To: CF-Talk
> Subject: Re: File upload
> 
> You're still going to run into an "valid" issue where two completely 
> different videos have the same name.  When it comes to CMS, even if
they're
> dupes, they're valid.  The client is responsible for weeding out the 
> duplicates.  Just getting the name (in your instance), wouldn't do you 
> any good.  It's almost like you'd also want the MD5 checksum of the 
> file as
well
> or something else.  There really is no way to determine if it's a
duplicate
> or not until it's on the server.  The name alone is not enough to go on.
> 
> On Feb 5, 2008 9:17 AM, Rick Sanders <[EMAIL PROTECTED]> wrote:
> 
> > Hello James,
> >
> > I want to grab the file name and query it in the database to see if 
> > it exists or not before the 15mb file is uploaded. This way, if the 
> > file exists, I can easily return an error and prompt the user to 
> > rename the file, or offer suggested names for the file.
> >
> > I've created a site for uploading videos, and there is a chance that 
> > 2 people can upload a video with the same name, but the video is
completely
> > different. If I could bypass the upload and just check the name then
this
> > would save alot of time.
> >
> > Kind regards,
> > Rick
> >
> 
> 
> 





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

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


Re: File upload

2008-02-05 Thread Ian Skinner
Rick Sanders wrote:
> Hi Todd,
>
> I won't run into a valid issue if the file is never uploaded to the server
> in the first place. Basically the user submits the file, before the 
> action I check the file name and see if it already exists in the database.
> If it does, then I return the error. If it doesn't exist, then go and
> perform the  action.
>
> There's a way to do this in ASP.net by checking against the name of the file
> field and the http header to grab the file name. I believe the control is
> browser.httpheader {form.fieldname}
>
> Kind regards,
>
> Rick
That is not the way this works, ASP, JSP, PHP, CF, pick your letters, 
the file us uploaded to the server FIRST.  Then the application server 
technology can grab it and do its mojo.

Your ASP example says just that.  It gets the file name from the HTTP 
header.  The reason the file name is in the HTTP header is because the 
entire file content is in the HTTP header.  If the user uploaded a 15mb 
file, the browser has uploaded a 15mb file to the server and there is a 
15mb+ HTTP header that ASP is inspecting.

You are talking about how the HTTP client-server | request-response 
standard is built.  All web application servers use the same HTTP 
standard.  This behavior is not going to change from one application 
server to another.

Ian


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

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


RE: File upload

2008-02-05 Thread Dave Watts
> I won't run into a valid issue if the file is never uploaded 
> to the server in the first place. Basically the user submits 
> the file, before the  action I check the file name 
> and see if it already exists in the database.
> If it does, then I return the error. If it doesn't exist, 
> then go and perform the  action.

Well, by the time CFFILE runs, the file has already been uploaded to the
server. CFFILE just takes the uploaded file out of a temp directory and puts
it where you tell it to.

> There's a way to do this in ASP.net by checking against the 
> name of the file field and the http header to grab the file 
> name. I believe the control is browser.httpheader {form.fieldname}

This basically works the same way, if I understand correctly. The file
itself is embedded in the HTTP POST response made by the browser. By the
time your server receives that response in its entirety, your server has the
file.

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

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/

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

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


RE: File upload

2008-02-05 Thread Rick Sanders
Hi Rick,

It doesn't solve the problem though. Here's the problem:

1. User #1 uploads a file called "Movie.wmv". The file is uploaded to
site/videos/Movie.wmv. The file is referenced in the database in the video
file field " Movie.wmv ".
2. User #55 also uploads a file called "Movie.wmv" which is a totally
different video in a totally different category. But, because it's named the
same, it overwrites the original "Movie.wmv" file, thus making both videos
the same.

I need to check to see if the file exists before it's uploaded, or it'll
overwrite the existing video.

My work-around is to upload the file to a temp location then check if the
file exists already. If not, move the file to the videos folder. If it does
exists, delete it from temp and return an error.

Kind regards,

Rick

-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
Sent: February-05-08 11:28 AM
To: CF-Talk
Subject: RE: File upload

Why not have the user upload the file, rename it automatically if there is
a conflict for a name that is referred to within the database, but also
retain
the original filename in the database for display to users.

Rick

> -Original Message-
> From: Todd Rafferty [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 05, 2008 9:27 AM
> To: CF-Talk
> Subject: Re: File upload
> 
> You're still going to run into an "valid" issue where two completely
> different videos have the same name.  When it comes to CMS, even if
they're
> dupes, they're valid.  The client is responsible for weeding out the
> duplicates.  Just getting the name (in your instance), wouldn't do you any
> good.  It's almost like you'd also want the MD5 checksum of the file as
well
> or something else.  There really is no way to determine if it's a
duplicate
> or not until it's on the server.  The name alone is not enough to go on.
> 
> On Feb 5, 2008 9:17 AM, Rick Sanders <[EMAIL PROTECTED]> wrote:
> 
> > Hello James,
> >
> > I want to grab the file name and query it in the database to see if it
> > exists or not before the 15mb file is uploaded. This way, if the file
> > exists, I can easily return an error and prompt the user to rename the
> > file,
> > or offer suggested names for the file.
> >
> > I've created a site for uploading videos, and there is a chance that 2
> > people can upload a video with the same name, but the video is
completely
> > different. If I could bypass the upload and just check the name then
this
> > would save alot of time.
> >
> > Kind regards,
> > Rick
> >
> 
> 
> 



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

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


RE: File upload

2008-02-05 Thread Rick Sanders
Hi Todd,

I won't run into a valid issue if the file is never uploaded to the server
in the first place. Basically the user submits the file, before the 
action I check the file name and see if it already exists in the database.
If it does, then I return the error. If it doesn't exist, then go and
perform the  action.

There's a way to do this in ASP.net by checking against the name of the file
field and the http header to grab the file name. I believe the control is
browser.httpheader {form.fieldname}

Kind regards,

Rick

-Original Message-
From: Todd Rafferty [mailto:[EMAIL PROTECTED] 
Sent: February-05-08 10:27 AM
To: CF-Talk
Subject: Re: File upload

You're still going to run into an "valid" issue where two completely
different videos have the same name.  When it comes to CMS, even if they're
dupes, they're valid.  The client is responsible for weeding out the
duplicates.  Just getting the name (in your instance), wouldn't do you any
good.  It's almost like you'd also want the MD5 checksum of the file as well
or something else.  There really is no way to determine if it's a duplicate
or not until it's on the server.  The name alone is not enough to go on.

On Feb 5, 2008 9:17 AM, Rick Sanders <[EMAIL PROTECTED]> wrote:

> Hello James,
>
> I want to grab the file name and query it in the database to see if it
> exists or not before the 15mb file is uploaded. This way, if the file
> exists, I can easily return an error and prompt the user to rename the
> file,
> or offer suggested names for the file.
>
> I've created a site for uploading videos, and there is a chance that 2
> people can upload a video with the same name, but the video is completely
> different. If I could bypass the upload and just check the name then this
> would save alot of time.
>
> Kind regards,
> Rick
>




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

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


RE: File upload

2008-02-05 Thread Rick Faircloth
Why not have the user upload the file, rename it automatically if there is
a conflict for a name that is referred to within the database, but also retain
the original filename in the database for display to users.

Rick

> -Original Message-
> From: Todd Rafferty [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 05, 2008 9:27 AM
> To: CF-Talk
> Subject: Re: File upload
> 
> You're still going to run into an "valid" issue where two completely
> different videos have the same name.  When it comes to CMS, even if they're
> dupes, they're valid.  The client is responsible for weeding out the
> duplicates.  Just getting the name (in your instance), wouldn't do you any
> good.  It's almost like you'd also want the MD5 checksum of the file as well
> or something else.  There really is no way to determine if it's a duplicate
> or not until it's on the server.  The name alone is not enough to go on.
> 
> On Feb 5, 2008 9:17 AM, Rick Sanders <[EMAIL PROTECTED]> wrote:
> 
> > Hello James,
> >
> > I want to grab the file name and query it in the database to see if it
> > exists or not before the 15mb file is uploaded. This way, if the file
> > exists, I can easily return an error and prompt the user to rename the
> > file,
> > or offer suggested names for the file.
> >
> > I've created a site for uploading videos, and there is a chance that 2
> > people can upload a video with the same name, but the video is completely
> > different. If I could bypass the upload and just check the name then this
> > would save alot of time.
> >
> > Kind regards,
> > Rick
> >
> 
> 
> 

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

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


Re: File upload

2008-02-05 Thread Todd Rafferty
You're still going to run into an "valid" issue where two completely
different videos have the same name.  When it comes to CMS, even if they're
dupes, they're valid.  The client is responsible for weeding out the
duplicates.  Just getting the name (in your instance), wouldn't do you any
good.  It's almost like you'd also want the MD5 checksum of the file as well
or something else.  There really is no way to determine if it's a duplicate
or not until it's on the server.  The name alone is not enough to go on.

On Feb 5, 2008 9:17 AM, Rick Sanders <[EMAIL PROTECTED]> wrote:

> Hello James,
>
> I want to grab the file name and query it in the database to see if it
> exists or not before the 15mb file is uploaded. This way, if the file
> exists, I can easily return an error and prompt the user to rename the
> file,
> or offer suggested names for the file.
>
> I've created a site for uploading videos, and there is a chance that 2
> people can upload a video with the same name, but the video is completely
> different. If I could bypass the upload and just check the name then this
> would save alot of time.
>
> Kind regards,
> Rick
>


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

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


RE: File upload

2008-02-05 Thread Rick Sanders
Hello James,

I want to grab the file name and query it in the database to see if it
exists or not before the 15mb file is uploaded. This way, if the file
exists, I can easily return an error and prompt the user to rename the file,
or offer suggested names for the file.

I've created a site for uploading videos, and there is a chance that 2
people can upload a video with the same name, but the video is completely
different. If I could bypass the upload and just check the name then this
would save alot of time.

Kind regards,

Rick

-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED] 
Sent: February-04-08 10:20 PM
To: CF-Talk
Subject: Re: File upload

Out of curiosity, can you say why you need the filename before the
file is uploaded to the server?

On Feb 5, 2008 5:47 AM, Rick Sanders <[EMAIL PROTECTED]> wrote:
> Hello Bruce,
>
> Thanks for your reply. However, I'd like to grab the file name before the
> file is actually uploaded to the server.

-- 
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;160198600;22374440;w

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


RE: File upload - my new posts aren't coming through

2008-02-05 Thread Andy Matthews
Sure thing Michael, will do. 

-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 04, 2008 5:28 PM
To: CF-Talk
Subject: Re: File upload - my new posts aren't coming through

Not at all. I'm just wondering why the posts are not coming in/creating new
threads. CCing me on new posts and/or doing the same while posting through
the test list will help me trace the problem down.

On Feb 4, 2008 6:04 PM, Andy Matthews <[EMAIL PROTECTED]> wrote:

> Michael...
>
> I'm using Outlook 2003, the same client I've been using for the last year.
> I've created many original threads using this same client.
>
> Are you actually suggesting that we should all use the web interface 
> to make new posts?
>




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

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


Re: File upload

2008-02-04 Thread Bruce Sorge
Read the original  post. I don't need it.

Ryan Stille wrote:
> I don't know why Bruce needs it, but I would love to be able to do it 
> because it adds usability.
>
> When there are multiple file upload boxes, its easy to get confused as 
> to what files you have selected already.  The file input box is usually 
> only about 20 characters wide (and not adjustable in most browsers).  So 
> I end up seeing "C:\Documents and Sett" in all 10 boxes.  I have used 
> some uploaders where after you select the file, the file name appears 
> next to the file select control.   Very helpful.
>   

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

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


Re: File upload

2008-02-04 Thread James Holmes
That makes sense. This multi file uploader does that:

http://www.adobe.com/devnet/coldfusion/articles/multifile_upload.html

On Feb 5, 2008 12:02 PM, Ryan Stille <[EMAIL PROTECTED]> wrote:
> I don't know why Bruce needs it, but I would love to be able to do it
> because it adds usability.
>
> When there are multiple file upload boxes, its easy to get confused as
> to what files you have selected already.  The file input box is usually
> only about 20 characters wide (and not adjustable in most browsers).  So
> I end up seeing "C:\Documents and Sett" in all 10 boxes.  I have used
> some uploaders where after you select the file, the file name appears
> next to the file select control.   Very helpful.
>
> -Ryan
>
> James Holmes wrote:
> > Out of curiosity, can you say why you need the filename before the
> > file is uploaded to the server?
> >
> > On Feb 5, 2008 5:47 AM, Rick Sanders <[EMAIL PROTECTED]> wrote:
> >
> >> Hello Bruce,
> >>
> >> Thanks for your reply. However, I'd like to grab the file name before the
> >> file is actually uploaded to the server.
> >>
> >
> >
>
>
>
> 

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

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


Re: File upload

2008-02-04 Thread Ryan Stille
I don't know why Bruce needs it, but I would love to be able to do it 
because it adds usability.

When there are multiple file upload boxes, its easy to get confused as 
to what files you have selected already.  The file input box is usually 
only about 20 characters wide (and not adjustable in most browsers).  So 
I end up seeing "C:\Documents and Sett" in all 10 boxes.  I have used 
some uploaders where after you select the file, the file name appears 
next to the file select control.   Very helpful.

-Ryan

James Holmes wrote:
> Out of curiosity, can you say why you need the filename before the
> file is uploaded to the server?
>
> On Feb 5, 2008 5:47 AM, Rick Sanders <[EMAIL PROTECTED]> wrote:
>   
>> Hello Bruce,
>>
>> Thanks for your reply. However, I'd like to grab the file name before the
>> file is actually uploaded to the server.
>> 
>
>   



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

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


Re: File upload

2008-02-04 Thread James Holmes
Out of curiosity, can you say why you need the filename before the
file is uploaded to the server?

On Feb 5, 2008 5:47 AM, Rick Sanders <[EMAIL PROTECTED]> wrote:
> Hello Bruce,
>
> Thanks for your reply. However, I'd like to grab the file name before the
> file is actually uploaded to the server.

-- 
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;160198600;22374440;w

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


Re: File upload - my new posts aren't coming through

2008-02-04 Thread Michael Dinowitz
Not at all. I'm just wondering why the posts are not coming in/creating new
threads. CCing me on new posts and/or doing the same while posting through
the test list will help me trace the problem down.

On Feb 4, 2008 6:04 PM, Andy Matthews <[EMAIL PROTECTED]> wrote:

> Michael...
>
> I'm using Outlook 2003, the same client I've been using for the last year.
> I've created many original threads using this same client.
>
> Are you actually suggesting that we should all use the web interface to
> make
> new posts?
>


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

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


Re: File upload - my new posts aren't coming through

2008-02-04 Thread Ryan Stille
I've had problems with occasional messages not coming through for a few 
weeks now, perhaps months.  I always use plain text when posting to this 
list.

-Ryan

Bruce Sorge wrote:
> I use Thunderbird and I make sure to select Text Only when sending to 
> any of your lists 99% of what I originally posts goes through fine.
>
> Bruce
>
> Michael Dinowitz wrote:
>   
>> The issue is probably due to you posting from a client that has a rich text
>> post set as default. Rich text posts are usually base64 encoded which is
>> rejected by the lists. Some rich text posts are html only with no text only
>> alternate which is also rejected. Replying always works because the reply is
>> in the same format as the original post which will always be sent to you as
>> plain text.
>> What client are you using to post?
>>
>> BTW, posting from the archives always works. :)
>>
>>   
>> 
>
>
> 

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

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


Re: File upload - my new posts aren't coming through

2008-02-04 Thread Michael Dinowitz
Next time you post a new thread, please CC me. If you would like to test
now, you can go to test list at
http://www.houseoffusion.com/groups/test/
subscribe there and post there. I prefer tests to go to that list rather
than to this one.
Thanks

On Feb 4, 2008 5:34 PM, Bruce Sorge <[EMAIL PROTECTED]> wrote:

> I use Thunderbird and I make sure to select Text Only when sending to
> any of your lists 99% of what I originally posts goes through fine.
>
> Bruce
>
> Michael Dinowitz wrote:
> > The issue is probably due to you posting from a client that has a rich
> text
> > post set as default. Rich text posts are usually base64 encoded which is
> > rejected by the lists. Some rich text posts are html only with no text
> only
> > alternate which is also rejected. Replying always works because the
> reply is
> > in the same format as the original post which will always be sent to you
> as
> > plain text.
> > What client are you using to post?
> >
> > BTW, posting from the archives always works. :)
> >
> >
>
>
> 

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

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


RE: File upload - my new posts aren't coming through

2008-02-04 Thread Andy Matthews
Michael...

I'm using Outlook 2003, the same client I've been using for the last year.
I've created many original threads using this same client.

Are you actually suggesting that we should all use the web interface to make
new posts? 

-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 04, 2008 4:32 PM
To: CF-Talk
Subject: Re: File upload - my new posts aren't coming through

The issue is probably due to you posting from a client that has a rich text
post set as default. Rich text posts are usually base64 encoded which is
rejected by the lists. Some rich text posts are html only with no text only
alternate which is also rejected. Replying always works because the reply is
in the same format as the original post which will always be sent to you as
plain text.
What client are you using to post?

BTW, posting from the archives always works. :)

On Feb 4, 2008 3:57 PM, Andy Matthews <[EMAIL PROTECTED]> wrote:

> Is anyone else having an issue with making new threads? I've tried to 
> post two new threads today (once was sent twice) and it's not going
through.
> But
> then my reply to the File Upload thread came through just fine.
>
>
> andy
>
>
>
> 



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

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


RE: File upload

2008-02-04 Thread Rick Sanders
Hi Ian,

I suspected as so. I don't know of any development platform that can grab
the file name before going to the server. I have tried some javascript
controls, but it doesn't work the same for all clients, and of course if
someone has spyware or browser problems it'll crash their browser. I don't
like to depend on the client for anything when it comes to web development.

Thanks,

Rick

You can't with ColdFusion.  The browser does not tell the server 
anything about the file before the upload occurs.  It just bundles the 
entire file up and sends it with the request to the server generated 
when the user selects the 'submit' control.  Then the web server takes 
the file from the request and writes it to a temp file location.  It 
then passes the request to ColdFusion telling it where this temp 
location is.  ColdFusion then does what you tell it to do with the file.

To do anything before this must be done on the Client usually with 
JavaScript.  But it is not so easy to access information about any user 
file selections with JavaScript for security reasons.  The one technique 
I've seen is to mirror the path string from the file control to a hidden 
control.  One then can do some JS validation with the hidden control value.







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

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


RE: File upload

2008-02-04 Thread Rick Sanders
Hey Bruce,

No worries, I may not have explained it all too well either. Thanks for the
friendly name idea. I was hoping there was another way, but I've messed
around with this long enough so that's how it's going to be done!

Thanks,

Rick

-Original Message-
From: Bruce Sorge [mailto:[EMAIL PROTECTED] 
Sent: February-04-08 5:13 PM
To: CF-Talk
Subject: Re: File upload

Actually it was Robert who posted ServerFile post. I misunderstood your 
post and thought that you wanted the file name that you are sending. My bad.

Anyway, I don't think this is possible with CF, but CF can rename the 
file on it's own if there is a conflict. Just use the makeunique attribut.

Typically what I do is when I have a user upload a file, I have them 
select the file they want to upload, and then I have another field for a 
friendly name. So if the file is something like 2008budget.xls, I would 
have them enter something like 2008 Budget. I enter the serverrfile name 
into the table along with the friendly name. Then when I query the table 
I show the friendly name to the user and then use the serverfile name 
for the actual file name.

Bruce

Rick Sanders wrote:
> Hey Bruce,
>
> Thanks again. I do want to rename the file, so how would I go about this
> with serverfile?
>
> Thanks to everyone else who replied as well.
>
> Rick
>   



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

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


Re: File upload - my new posts aren't coming through

2008-02-04 Thread Bruce Sorge
I use Thunderbird and I make sure to select Text Only when sending to 
any of your lists 99% of what I originally posts goes through fine.

Bruce

Michael Dinowitz wrote:
> The issue is probably due to you posting from a client that has a rich text
> post set as default. Rich text posts are usually base64 encoded which is
> rejected by the lists. Some rich text posts are html only with no text only
> alternate which is also rejected. Replying always works because the reply is
> in the same format as the original post which will always be sent to you as
> plain text.
> What client are you using to post?
>
> BTW, posting from the archives always works. :)
>
>   


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

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


Re: File upload - my new posts aren't coming through

2008-02-04 Thread Michael Dinowitz
The issue is probably due to you posting from a client that has a rich text
post set as default. Rich text posts are usually base64 encoded which is
rejected by the lists. Some rich text posts are html only with no text only
alternate which is also rejected. Replying always works because the reply is
in the same format as the original post which will always be sent to you as
plain text.
What client are you using to post?

BTW, posting from the archives always works. :)

On Feb 4, 2008 3:57 PM, Andy Matthews <[EMAIL PROTECTED]> wrote:

> Is anyone else having an issue with making new threads? I've tried to post
> two new threads today (once was sent twice) and it's not going through.
> But
> then my reply to the File Upload thread came through just fine.
>
>
> andy
>
>
>
> 

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

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


Re: File upload

2008-02-04 Thread Bruce Sorge
Actually it was Robert who posted ServerFile post. I misunderstood your 
post and thought that you wanted the file name that you are sending. My bad.

Anyway, I don't think this is possible with CF, but CF can rename the 
file on it's own if there is a conflict. Just use the makeunique attribut.

Typically what I do is when I have a user upload a file, I have them 
select the file they want to upload, and then I have another field for a 
friendly name. So if the file is something like 2008budget.xls, I would 
have them enter something like 2008 Budget. I enter the serverrfile name 
into the table along with the friendly name. Then when I query the table 
I show the friendly name to the user and then use the serverfile name 
for the actual file name.

Bruce

Rick Sanders wrote:
> Hey Bruce,
>
> Thanks again. I do want to rename the file, so how would I go about this
> with serverfile?
>
> Thanks to everyone else who replied as well.
>
> Rick
>   

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

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


Re: File upload

2008-02-04 Thread Ian Skinner
Rick Sanders wrote:
> Hello Bruce,
>
> Thanks for your reply. However, I'd like to grab the file name before the
> file is actually uploaded to the server.
>
> Kind regards,
>
> Rick
You can't with ColdFusion.  The browser does not tell the server 
anything about the file before the upload occurs.  It just bundles the 
entire file up and sends it with the request to the server generated 
when the user selects the 'submit' control.  Then the web server takes 
the file from the request and writes it to a temp file location.  It 
then passes the request to ColdFusion telling it where this temp 
location is.  ColdFusion then does what you tell it to do with the file.

To do anything before this must be done on the Client usually with 
JavaScript.  But it is not so easy to access information about any user 
file selections with JavaScript for security reasons.  The one technique 
I've seen is to mirror the path string from the file control to a hidden 
control.  One then can do some JS validation with the hidden control value.





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

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


Re: File upload - my new posts aren't coming through

2008-02-04 Thread Bruce Sorge
I have that problem once in a while. Not sure what is going on with this 
though. weird.

Bruce

Andy Matthews wrote:
> Is anyone else having an issue with making new threads? I've tried to post
> two new threads today (once was sent twice) and it's not going through. But
> then my reply to the File Upload thread came through just fine.
>
>
> andy
>   

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

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


RE: File upload - my new posts aren't coming through

2008-02-04 Thread Andy Matthews
Is anyone else having an issue with making new threads? I've tried to post
two new threads today (once was sent twice) and it's not going through. But
then my reply to the File Upload thread came through just fine.


andy



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

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


RE: File upload

2008-02-04 Thread Rick Sanders
Hey Bruce,

Thanks again. I do want to rename the file, so how would I go about this
with serverfile?

Thanks to everyone else who replied as well.

Rick

-Original Message-
From: Bruce Sorge [mailto:[EMAIL PROTECTED] 
Sent: February-04-08 4:47 PM
To: CF-Talk
Subject: Re: File upload

DOH!. (slaps head). Heh.

On Feb 4, 2008 12:44 PM, Robert Harrison <[EMAIL PROTECTED]> wrote:

> ClientFile is the name of the original file uploaded by the client.
> ServerFile is the name of the file after it's uploaded to the server. If
> you're doing a rename you may need Serverfile.
>
>




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

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


RE: File upload

2008-02-04 Thread Rick Sanders
Hello Bruce,

Thanks for your reply. However, I'd like to grab the file name before the
file is actually uploaded to the server.

Kind regards,

Rick

-Original Message-
From: Bruce Sorge [mailto:[EMAIL PROTECTED] 
Sent: February-04-08 4:38 PM
To: CF-Talk
Subject: Re: File upload

ClientFile is the variable you are looking for.

Bruce

Rick Sanders wrote:
> Hello list,
>
>  
>
> After someone uploads a file in the form field, how can I grab the file
name
> from the ?
>
> I've been through the documentation, and I can't see how to retrieve the
> file name from the file field?
>
> I tried displaying the #form.filefield# but it just shows me the temp path
> where CF uploaded the file to!?
>   



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

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


Re: File upload

2008-02-04 Thread Bruce Sorge
DOH!. (slaps head). Heh.

On Feb 4, 2008 12:44 PM, Robert Harrison <[EMAIL PROTECTED]> wrote:

> ClientFile is the name of the original file uploaded by the client.
> ServerFile is the name of the file after it's uploaded to the server. If
> you're doing a rename you may need Serverfile.
>
>


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

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


RE: File upload

2008-02-04 Thread Andy Matthews
CFFILE.clientFile  Name of the file uploaded from the client's system
 
CFFILE.serverFile Filename of the file saved on the server

http://www.cfquickdocs.com/cf8/#cffile.upload 

-Original Message-
From: Rick Sanders [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 04, 2008 2:33 PM
To: CF-Talk
Subject: File upload

Hello list,

 

After someone uploads a file in the form field, how can I grab the file name
from the ?

I've been through the documentation, and I can't see how to retrieve the
file name from the file field?

I tried displaying the #form.filefield# but it just shows me the temp path
where CF uploaded the file to!?

 

Thanks,

 

LogoSig

Rick Sanders

Webenergy

Canada: 902-401-7689

USA:   919-799-9076

Canada: www.webenergy.ca

USA:   www.webenergyusa.com

 







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

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


RE: File upload

2008-02-04 Thread Robert Harrison
ClientFile is the name of the original file uploaded by the client.
ServerFile is the name of the file after it's uploaded to the server. If
you're doing a rename you may need Serverfile.


Robert B. Harrison
Director of Interactive services
Austin & Williams
125 Kennedy Drive, Suite 100 Hauppauge NY 11788
T : 631.231.6600 Ext. 119 
F : 631.434.7022
www.austin-williams.com

Great advertising can't be either/or... It must be &.
-Original Message-
From: Bruce Sorge [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 04, 2008 3:38 PM
To: CF-Talk
Subject: Re: File upload

ClientFile is the variable you are looking for.

Bruce

Rick Sanders wrote:
> Hello list,
>
>  
>
> After someone uploads a file in the form field, how can I grab the file
name
> from the ?
>
> I've been through the documentation, and I can't see how to retrieve the
> file name from the file field?
>
> I tried displaying the #form.filefield# but it just shows me the temp path
> where CF uploaded the file to!?
>   



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

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


RE: File upload

2008-02-04 Thread Dave Watts
> After someone uploads a file in the form field, how can I 
> grab the file name from the ?
> 
> I've been through the documentation, and I can't see how to 
> retrieve the file name from the file field?
> 
> I tried displaying the #form.filefield# but it just shows me 
> the temp path where CF uploaded the file to!?

File.clientfile is the variable containing the original file name.
File.serverfile is the variable containing the file name on the server:
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_f_10.
html

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

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/

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

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


  1   2   3   >