I'm still struggling with uploading files greater than 200k. My hosting company has provided a sample upload script that works fine with larger files and my application works fine on the demo server but my application does not work with files larger than 200k on my hosting company's server.
My hosting company is at a loss to explain it. Can I modify the asp code to use upload instead of writetofile to see if that works? Can you help with how to make that change or do you have other suggestions?
The section of code that does the writetofile looks like this:
if avalues.exists("docLocation") then _
strValue = avalues.Item("docLocation")
if not errorhappened and not (vartype(strValue)=11 and strValue=False) then
if isnull(strValue) then strValue=""
ctype = GetRequestForm("typedocLocation")
If ctype = "upload2" Then
' write file
rs("docLocation")= strValue
if strValue<>"" then
WriteToFile Server.MapPath(GetUploadFolder("docLocation","") & strValue), GetRequestForm("file_docLocation")
end if
call report_error
end if
Thanks,
Bruce