CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 FileUpLoad On Rename File documention is missing

Print topic Send  topic

Author Message
Ole Kirkholt
Posted: 11/20/2003, 5:34 AM

Hello

In CCS 2.2.2.40 the is an OnRenameFile event in the Upload component, but
the documention (helpfile as pdf's) is missing
How do i Rename an uploaded file (using ASP)

Best regards

Ole Kirkholt

--


Walter Kempees
Posted: 11/20/2003, 1:11 PM

I took this from the Helpfile, hope it helps if not report back :

quote:

Unlike the other languages, ASP 3.0 does not have native support for
uploading files. As such, when using ASP it is necessary to install third
part software which will perform the upload when invoked by ASP code.
However, this is not necessary if you decide to use the script based pure
ASP upload method. Currently, CodeCharge Studio is able to work with the
following upload components:

1.. COM based components
Persits Upload
CLSID: Persits.Upload
Company: Persits Software, Inc.
URL: http://www.persits.com

ActiveFile Upload
CLSID: ActiveFile.Post
Company: Infomentum
URL: http://www.infomentum.com

ABCUpload
CLSID: ABCUpload4.XForm
Company:WebSupergoo
URL: http://www.websupergoo.com

Dundas Upload
CLSID: Dundas.Upload.2
Company:Dundas Software
URL: http://www.dundas.com

2.. Script based components (does not require installation of a third
party component)
Pure ASP Upload
Author: Jacob "Beezle" Gilley
Email:avis7@airmail.net
Modified by: Will Bickford
Email:wbic16@hotmail.com

If using one of the COM based components, the component must be installed
and properly configured on the server where the ASP pages will be published.
If an ASP project is going to have one or more File Upload components in its
pages, the File Upload Component property of the project must be set to
indicate the file upload component that is available on the server. To
locate this File Upload Component property, click on the project name in the
Project Explorer window so that the project properties are exposed in the
Properties window

unquote

"Ole Kirkholt" <ole@kirkholt.com> schreef in bericht
news:bpifts$7r5$1@news.codecharge.com...
> Hello
>
> In CCS 2.2.2.40 the is an OnRenameFile event in the Upload component, but
> the documention (helpfile as pdf's) is missing
> How do i Rename an uploaded file (using ASP)
>
> Best regards
>
> Ole Kirkholt
>
> --
>
>
>

Walter Kempees
Posted: 11/20/2003, 1:30 PM

Extra
In CCS if you press F1 help bottom line on any page points to online
helpfile.
All FileUpload methods, events and details are explained infull
http://docs.codecharge.com/studio/html/
Good lUck
"Ole Kirkholt" <ole@kirkholt.com> schreef in bericht
news:bpifts$7r5$1@news.codecharge.com...
> Hello
>
> In CCS 2.2.2.40 the is an OnRenameFile event in the Upload component, but
> the documention (helpfile as pdf's) is missing
> How do i Rename an uploaded file (using ASP)
>
> Best regards
>
> Ole Kirkholt
>
> --
>
>
>

Sixto Luis Santos
Posted: 11/20/2003, 11:09 PM

Hello,

To rename the file, set the return value of the event function to the new
filename.

For example, lets say that you want to store a file on your server with
exactly the same name as it exists on your local machine (without the
datetime that CCS prepends to the filename):

' ===== Event code ======
Function employees1_FileUpload1_OnRenameFile()

Dim objFile
Dim strCtrlName

strCtrlName="FileUpload1"

' Grab a reference to the file object (contains info about the uploaded
file)
Set objFile=objUpload.Files(strCtrlName & "_File")

' We assign the original filename to the return value of the event function
employees1_FileUpload1_OnRenameFile=objFile.FileName ' <<<<<<<

Set objFile=Nothing

End Function
' ===== Event code ======

In this example, the name of our fileupload control is "FileUpload1", that
is a control in the record form "employees1".

objUpload is a global class object that encapsulates whatever file upload
component you are using (persits, dundas, etc)

Regards,

Sixto

"Ole Kirkholt" <ole@kirkholt.com> wrote in message
news:bpifts$7r5$1@news.codecharge.com...
> Hello
>
> In CCS 2.2.2.40 the is an OnRenameFile event in the Upload component, but
> the documention (helpfile as pdf's) is missing
> How do i Rename an uploaded file (using ASP)
>
> Best regards
>
> Ole Kirkholt
>
> --
>
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.