Solved

Upload.asp no longer accepting documents for upload

Posted on 2008-06-26
4
735 Views
Last Modified: 2008-07-10
Im currently using Upload.asp and Buffering.inc to bring Word Documents or PDF documents into my webserver from a submitted form.  Up until a few days ago, the code worked.  Now, it wont take the file I upload and write it to my server.

1.  I can remove the "FileData" from the BufferContent function, insert a regular string: "This is a test" and have it sucessfully write to the server.  But it chokes on the uploaded file.

2.  The file IS sucessfuly generated on the server, but remains empty as no data gets written to it.  File permissions on that folder right now are wide open for Admin, System, and IUSR.

3.  The files being uploaded are not complex.  I have used previously uploaded files, as well as simple "Hello World" documents.

What I need to know, is what is happening to the data of the uploaded document that is preventing upload.asp from writing it to my server now.

Any help would be greatly appreciated!
0
Comment
Question by:kova4
  • 3
4 Comments
 

Author Comment

by:kova4
ID: 21878084
Here is the code that is causing me aggrivation...
Public Sub SaveToDisk(sPath)
     Dim oFS, oFile
     Dim nIndex
 
     If sPath = "" Or FileName = "" Then Exit Sub
 
     If Mid(sPath, Len(sPath)) <> "\" Then sPath = sPath & "\"
 
     Set oFS = Server.CreateObject("Scripting.FileSystemObject")
 
     If Not oFS.FolderExists(sPath) Then Exit Sub
 
     Set oFile = oFS.CreateTextFile(sPath & FileName, True)
     
     'Response.write FileData
     'BREAK
 
     ' output mechanism modified for buffering
     oFile.Write BufferContent(FileData) <-- LINE GETTING THE ERROR
     oFile.Close
 
End Sub

Open in new window

0
 
LVL 1

Expert Comment

by:Deven
ID: 21878793
try to  increase upload/download value in Metabase - IIS Server Settings.

IIS6.0 prevent the upload of files to certain size. So you need to make some changes in the default IIS settings first. Look for the "AspMaxRequestEntityAllowed" property specifies the maximum number of bytes allowed in the entity body of an ASP request. This property is related in function to MaxRequestEntityAllowed. Check with your Server Administrator to fix the max file upload size limit.
0
 

Author Comment

by:kova4
ID: 21898606
Went in and changed the metabase to accept up to 6mb of data.  The same problem exists.  Im running IIS 5.0 just so you are aware.
0
 

Accepted Solution

by:
kova4 earned 0 total points
ID: 21917644
Im gonna close the question, because it turned out to be a differnet problem entirely.  I am using Microsoft Expressions Web as my web editor, and on certain files, if you save them through Expressions web, it corrups the page such that functionality gets destroyed.  Once I went back to an earlier version of the document and edited it a different way, the problem resolved itself.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Obtaining data on ASP 8 35
OWA issue - Exchange 2013 - 440 Login Timeout 8 61
How can I put values from different columns in a single cell 11 34
ASP AND XML 3 30
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question