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!!!!!!!
|
 |
 |
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
|
|
|
 |
|