CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Persits Upload - Dynamically setting Destination Folders

Print topic Send  topic

Author Message
marcwolf


Posts: 361
Posted: 02/19/2004, 4:50 PM

I need to dynamically set the temporary and destination folders for the Upload component

My code is simple

  
	sms.FileUpload1.TemporaryFolder = application("uploaddir") &"\temp"  
	sms.FileUpload1.FileFolder = application("uploaddir")   
	sms.FileUpload1.FileSizeLimit= 1000000  

However I am not sure what the best event is to put this into.

The target machine will be a hosting company that has strict guidelines re temporaty folders and files locations, and I'd prefer not to have to hardcode this.

NOTE:- Modifying the CreateControl line in the Class initialise for this and putting in these parameters DO work, but of course - it roaches the standard creation code from CCS.

Many Thanks..

Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
View profile  Send private message
DonB
Posted: 02/19/2004, 7:44 PM

Use the Before Process File event.

--
DonB

http://www.gotodon.com/ccbth


"marcwolf" <marcwolf@forum.codecharge> wrote in message
news:6403559c7d579b@news.codecharge.com...
> I need to dynamically set the temporary and destination folders for the
Upload component
>
> My code is simple
>
>
  
> sms.FileUpload1.TemporaryFolder = application("uploaddir") &"\temp"  
> sms.FileUpload1.FileFolder = application("uploaddir")  
> sms.FileUpload1.FileSizeLimit= 1000000  
> 
>
> However I am not sure what the best event is to put this into.
>
> The target machine will be a hosting company that has strict guidelines re
temporaty folders and files locations, and I'd prefer not to have to
hardcode this.
>
> NOTE:- Modifying the CreateControl line in the Class initialise for this
and putting in these parameters DO work, but of course - it roaches the
standard creation code from CCS.
>
> Many Thanks..
>
> Dave
> _________________
> ' Coding Coding Coding
> Keep Those Keyboards Coding.
> Raw Code!!!!!!!
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

pp
Posted: 05/06/2004, 7:36 AM

:-)hi

Add new topic Subscribe to topic   


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

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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