ASP Upload question

Results 1 to 2 of 2

Thread: ASP Upload question

  1. #1
    Alex T. Guest

    Default ASP Upload question

    &nbsp;<BR>Okay...I have gotten APS Upload to succesfully work. basically it takes a file and then increments it. Here are my problems:<BR><BR>1. On the final page I just want to display the new name of the file, not the path. Currently it says "filename saved as d:/uploads/001(1).gif"<BR><BR>2. How do I get it so instead of renaming the file something like 001(1).gif, itt renames it 001-1.gif<BR><BR>Here is my code:<BR><BR>&#060;%<BR> <BR> Set Upload = Server.CreateObject("Persits.Upload.1")<BR><BR> Upload.OverwriteFiles = False <BR><BR> Count = Upload.SaveToMemory<BR><BR> If Count &#062; 0 Then &#039; 1 file uploaded<BR> Set File = Upload.Files(1)<BR> Path = "d:upload\" & Upload.Form("FILE")<BR><BR> File.SaveAs Path<BR> Response.Write "File saved as " & File.Path<BR> Else<BR> Response.Write "No files uploaded."<BR> End If<BR>%&#062;<BR>

  2. #2
    Alex T. Guest

    Default Whoops...sorry about the dual post


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts