Too bad

July 21, 2001 by Steve Jacobs
I have been searching for an ultradev compatible way to upload files to a cobalt raq with chilisoft. I am still looking.

use chiliupload

October 6, 2001 by rubs jr

i've been trying this for a couple of months and finaly got the chiliupload component to work properly, try this:

here's the upload form page:

<html>
<body>
<h1>Send file</h1>
 <FORM ACTION="fileupld.asp" METHOD="POST" ENCTYPE="multipart/form-data">
  <INPUT TYPE="FILE" NAME="FILE">
  <INPUT TYPE="SUBMIT" VALUE="Send">
 </FORM>
</body>
</html>

Here's the upload script, put it on a file named fileupld.asp


<%
Response.Expires = 0
Set fbase = Server.CreateObject("Chili.Upload.1")
dim strSentence, arrWords, strOneWord, element
strSentence = fbase.SourceFileName
strSentence = Trim(strSentence)
arrWords = Split (strSentence, "\", -1, 1)
element = UBound(arrWords)
Response.Write("Element = ")
Response.Write(element)
Response.Write("<BR>")
Response.Write(arrWords(element))
Response.Write("<BR>")

fbase.SizeLimit = 100000

fbase.SaveToFile("/full_path_to_your_site_from_the_server_root/directory_to_upload_files/" & arrWords(element))
%>

hope it helps

RE: use chiliupload

January 21, 2002 by Michael Tindall
Is there any way to make to filename saved dynamic? say if I pass a form variable to fileupld.asp would I be able to name the file that variable?

RE: use chiliupload

May 14, 2003 by Shi-Yen Cheng
Hi, i have an error said "Chili.Upload.1 error 800a03e9 Component is disabled" when using this chiliupload. how do i do to enable it?? Thanks.
See all 5 Comments