RE: CFX_Image oddity

2004-08-31 Thread Dennis Powers
 on a side note how can you tell the file size
 of the image before uploading to the server.

With the caveat that this will only work on Windows Clients and the client
must agree to an ActiveX install:

script language=_javascript_
function A()
{
var oas = new ActiveXObject(Scripting.FileSystemObject);
var d = document.a.b.value;
var e = oas.getFile(d);
var f = e.size;
alert(f +  bytes);
}
/script
/head
body
form name=a
input type=file name=b
input type=button name=c value=SIZE >
/form

Best Regards,

Dennis Powers
UXB Internet- A Website Design and Hosting Company
690 Wolcott Road - P.O. Box 6028
Wolcott, CT 06716 tel: (203)879-2844
http://www.uxbinternet.com
http://dennis.uxb.net
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFX_Image oddity

2004-08-27 Thread joe velez
not sure if its a known bug, but sounds like it could be. i would assume the tag only wanted JPG and GIF file extensions ??

anyways, why not use CFFILE to save the file .. rename it YOURFILENAME.JPG removing the E from JPEG .. then proceed as you normally would

btw, im looking for a cfx image resize tag, in java, not c++ -- i already have that one. if u know of one, please post :)

thanks

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




Re: CFX_Image oddity

2004-08-27 Thread Ray Champagne
Thanks for the tip, I think I will try that.

What about the Alagad Image one?

Might not be what you need, but maybe...

http://www.alagad.com/index.cfm/name-aic

Ray

At 02:42 PM 8/27/2004, you wrote:
not sure if its a known bug, but sounds like it could be. i would assume 
the tag only wanted JPG and GIF file extensions ??

anyways, why not use CFFILE to save the file .. rename it YOURFILENAME.JPG 
removing the E from JPEG .. then proceed as you normally would

btw, im looking for a cfx image resize tag, in java, not c++ -- i already 
have that one. if u know of one, please post :)

thanks

joe


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




RE: CFX_Image oddity

2004-08-27 Thread Eric Creese
on a side note how can you tell the file size of the image before uploading to the server. I allow my users to upload images through my app but I do not want to allow them to load picture larger than 40k?

-Original Message-
From: Ray Champagne [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 1:44 PM
To: CF-Talk
Subject: Re: CFX_Image oddity

Thanks for the tip, I think I will try that.

What about the Alagad Image one?

Might not be what you need, but maybe...

http://www.alagad.com/index.cfm/name-aic

Ray

At 02:42 PM 8/27/2004, you wrote:
not sure if its a known bug, but sounds like it could be. i would assume 
the tag only wanted JPG and GIF file extensions ??

anyways, why not use CFFILE to save the file .. rename it YOURFILENAME.JPG 
removing the E from JPEG .. then proceed as you normally would

btw, im looking for a cfx image resize tag, in java, not c++ -- i already 
have that one. if u know of one, please post :)

thanks

joe

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




Re: CFX_Image oddity

2004-08-27 Thread joe velez
im not sure about BEFORE they upload, but you could upload it, check it, and if it's too big delete itprobably not the best solution, but it works.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFX_Image oddity

2004-08-27 Thread Ray Champagne
Actually, what I am doing here is pretty much that.I am not sure there 
really *can* be a way to check a file before upload, how could you know 
until it resides on the server?

Anyways, uploading, checking, deleting (if bad file) seems to work pretty 
well for me.I actually do a bunch of checking, like is it an image, is 
the size too big, etc.

Ray

At 03:00 PM 8/27/2004, joe velez wrote:
im not sure about BEFORE they upload, but you could upload it, check it, 
and if it's too big delete itprobably not the best solution, but it 
works.



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




Re: CFX_Image oddity

2004-08-27 Thread Qasim Rasheed
Joe,
Here is a link to an image manipulation application that I wrote few
weeks ago. It has a java class to do image resizing and thumbnails
using Java Advance Image API.

http://www.macromedia.com/cfusion/exchange/index.cfm#loc=en_usview=sn106viewName=Exchange%20Search%20Detailsauthorid=33635320page=0scrollPos=0subcatid=0snid=sn106itemnumber=0extid=1017581catid=0

Qasim

- Original Message -
From: joe velez [EMAIL PROTECTED]
Date: Fri, 27 Aug 2004 15:00:15 -0400
Subject: Re: CFX_Image oddity
To: CF-Talk [EMAIL PROTECTED]

im not sure about BEFORE they upload, but you could upload it, check
it, and if it's too big delete itprobably not the best solution,
but it works.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: CFX_Image oddity

2004-08-27 Thread Eric Creese
well I had someone try to load a 17MB image file and it craashed my server.

-Original Message-
From: joe velez [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 2:00 PM
To: CF-Talk
Subject: Re: CFX_Image oddity

im not sure about BEFORE they upload, but you could upload it, check it, and if it's too big delete itprobably not the best solution, but it works. 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]