Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 13th, 2005, 03:49 PM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default chili.upload.1

i have got this component working but...every time i try to upload a file that is over 10 megs or so i get some sort or error message. i might have some files that are more than 900 megs. anyone have any ideas on this? here is my test code...

asp..

<%
Response.Expires = 0
Set fbase = Server.CreateObject("Chili.Upload.1")
' 100 megs
fbase.SizeLimit = 10000000
DuplicateCounter = 0
dim strSentence, arrWords, strOneWord, element
strSentence = fbase.SourceFileName
strSentence = Trim(strSentence)
arrWords = Split (strSentence, "\", -1, 1)
element = UBound(arrWords)
fileName = Server.MapPath("/testingSite/documents/") & "/" & arrWords(element)
fileName = Replace (fileName," ","")
response.write "file name is " & arrWords(element)
fbase.AllowOverwrite = False
fbase.SaveToFile(fileName)
set fbase = nothing
%>

html code..

<form action="testUpload2.asp" method="POST" enctype="multipart/form-data">
<input type="FILE" name="FILE">
<input name="SUBMIT" type="SUBMIT" value="Upload">
</form>


this is really driving me crazy...


Reply With Quote
  #2 (permalink)  
Old April 13th, 2005, 06:53 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

The following != to 100megs as your comment suggests:
fbase.SizeLimit = 10000000
This property is in bytes, 10000000 bytes is equal to:
80000000 bits
10000000 bytes
9765.625 kilobytes (abbreviated as KB or Kb*)
9.5367 megabytes (abbreviated as M or MB)
0.00931 gigabytes (abbreviated as G or GB)
0.000009 terabytes
0.0000000 petabytes
0.00000000 exabytes

For a convertor go to:
http://www.t1shopper.com/tools/calcu...onverter.shtml

To set a 100mb cap change your value to:
fbase.SizeLimit = 105000000
This set the value to:
840000000 bits

105000000 bytes
102539.062 kilobytes (abbreviated as KB or Kb*)
100.1358 megabytes (abbreviated as M or MB)
0.09779 gigabytes (abbreviated as G or GB)
0.000095 terabytes
0.0000001 petabytes
0.00000000 exabytes

BTW-;;;i might have some files that are more than 900 megs
Wow - very big files!!!

Wind is your friend
Matt
Reply With Quote
  #3 (permalink)  
Old April 14th, 2005, 07:57 AM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thank you for that...i'll make the changes and see what happens.

Reply With Quote
  #4 (permalink)  
Old April 14th, 2005, 08:14 AM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i was afraid of this...i got this error message...

Chili.Upload.1 error '80020009'

Failed reading post data. GetLastError() returned: 0

/testingSite/testUpload2.asp, line 13


  this is from trying to upload a 12mb file. i changed the filesize limit to "fbase.SizeLimit = 1048576000" and line 13 is...

strSentence = fbase.SourceFileName

any ideas what is wrong here?



Reply With Quote
  #5 (permalink)  
Old April 14th, 2005, 08:39 AM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

btw... this code still works as is with flies less than about 5 mb.

Reply With Quote
  #6 (permalink)  
Old April 14th, 2005, 11:04 AM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

so has anybody else here used chili.upload succesfully with large file uploads (perhaps as large as 900mb.)? and can tell me what i am doing wrong?

Reply With Quote
  #7 (permalink)  
Old June 19th, 2006, 03:06 AM
Registered User
 
Join Date: Jun 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I seem to have the same problem, did you ever find a solution?

Regards,
Joel

Reply With Quote
  #8 (permalink)  
Old March 5th, 2007, 10:35 AM
Registered User
 
Join Date: Mar 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the same problem with large files (90Mb+) but a different error message:

Chili.Upload.1 error '80020009'
Could not get TotalBytes. No data was sent.

Is just this component inappropriate for files of this size?

Reply With Quote
  #9 (permalink)  
Old March 5th, 2007, 10:46 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

You will probably want to contact the distributor of this component as this is more or less related to errors with that compoenent then a generalized question about asp.

However, that error message tells me that you have not setup the component correctly or are not correctly getting the uploaded file to the component.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
Reply With Quote
  #10 (permalink)  
Old March 5th, 2007, 06:45 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

My experience with this tool was up and down. Place 'pure asp upload' in the search area of this forum for a solid piece of code which does not require registration of components or anything to be placed on the server in addition to the .asp pages - Its tops.

There is talk in this posty of uploading crazy size files. If you want to upload over 70ish MB think about using FTP. IMO Uploading large files over HTTP isnt that smart. I allow up to 70MB using a pure ASP upload (dont forget to increase the script time out above the default 90 seconds and increase the property in the metabase.xml file for Win 2003). Some may say this is not ideal; whats other peoples thoughts on these questions, lets say its a reasonably high spec server:

Max file size using http?
Max increase of script time out?

Wind is your friend
Matt
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload pradeepbees Classic ASP Databases 0 May 15th, 2007 04:04 AM
Whole Folder upload(Multi file Upload) ramasamy_rams XML 1 September 9th, 2005 12:43 PM
UPLOAD HELP! HELP! HELP! msunnastood Dreamweaver (all versions) 5 November 25th, 2004 04:04 PM



All times are GMT -4. The time now is 11:54 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.