This topic is locked

File Upload

1/19/2014 3:28:07 AM
ASPRunnerPro General questions
F
fenhow author

I have this code to look, create and upload a file when a user is logged in.
Dim fso, f, ndir

ndir=server.MapPath(".") & "/FILES/BILLING/" & GetUploadFolder(UploadReceipts,"") &

session("UserID")

Set fso = CreateObject("Scripting.FileSystemObject")

If not fso.FolderExists(ndir) Then


set f=fso.CreateFolder(ndir)
pageObject.filesToSave(0).destFilename = session("UserID") & "/" & _

values("UploadReceipt")

values("UploadReceipt") = session("UserID") & "/" & values("UploadReceipt")
BeforeAdd=true [/i]
The issue I am having is if the user does not upload a file (which is not required for every record) the code will not save the record. Can you tell me what to add to make the record save regardless of whether the user uploads a file or not? Also, is there a way to allow them to upload multiple files at the same time?
Thanks in advance.

Sergey Kornilov admin 1/21/2014

I'm afraid I don't understand the question. I'm not seeing anything in this code that would prevent record from being saved.

F
fenhow author 1/22/2014



I'm afraid I don't understand the question. I'm not seeing anything in this code that would prevent record from being saved.



Ok thanks, for some reason when this code is in place and I do not upload a file the record will not save, it just sits there.

I will double check my end.

Fen