Chili!Upload Samples

Hi!

I'm pretty new to Chili!Upload (and asp aswell) and trying to understand how I can use this component.

My ISP (webhotel) is using Chili!Upload as uploadcomponent.

I'm looking for fully working example code/application to start to learn with.

All help appreciated!

[304 byte] By [JockeS] at [2007-11-26 8:26:52]
# 1

There isn't too much complexity in Chili!Upload component usage, documentation says it all. Anyway, have a look at the following threads for examples of usage:

http://swforum.sun.com/jive/thread.jspa?threadID=58207&tstart=150

http://swforum.sun.com/jive/thread.jspa?threadID=22398&tstart=210

Sultal at 2007-7-6 21:41:50 > top of Java-index,Web & Directory Servers,Web Servers...
# 2

[nobr]Well, with little help from another UL-component I got it working.

Here's my basic, working code:

-| index.asp |-

<html>

<HEAD>

<TITLE>Index page</TITLE>

</HEAD>

<body>

<h1>Send file</h1>

<FORM ACTION="fileupld.asp" METHOD="POST" ENCTYPE="multipart/form-data">

<INPUT TYPE="FILE" NAME="FILE1" SIZE="50"><BR>

<INPUT TYPE="SUBMIT" VALUE="Send">

</FORM>

</body>

</html>

And the main UL page;-| fileupld.asp |-

<HTML>

<HEAD>

<TITLE>Upload status page</TITLE>

</HEAD>

<BODY>

<H1>Upload Status</H1>

<HR>

<%

Response.Expires = 0

Dim ChiliUp

Dim sFileName

Dim sFileSize

Set ChiliUp = Server.CreateObject("Chili.Upload.1")

ChiliUp.SizeLimit = 1000000

sFileName = ChiliUp.SourceFileName

sFileSize = ChiliUp.FileSize

Response.Write "Upload of " & sFileName & " (" & sFileSize & "bytes).<hr>"

ChiliUp.SaveToFile(Server.mapPath("/") & "/uploads/" & sFileName)

%>

</BODY>

</HTML>

Now, anyone willing to share any idea of how to implement multiple files upload?

Thanx in advance!

Message was edited by:

JockeS[/nobr]

JockeS at 2007-7-6 21:41:50 > top of Java-index,Web & Directory Servers,Web Servers...