0

hi please guys help am also trying to upload a small file and this is the code i used.i have have also tried looking at the http://www.freeaspupload.net site but am very new and i learn as i do . i have used this code by the way it was 1st explained to me it should work but gives me an error saying could not write to file please help..

<form name="upload_form"  enctype="multipart/form-data" action="fileUploadForm.asp"method="post">

<input type="file" name="upload_file" size="30"/> 
<input type="submit" name="upload_btn" value="Upload" class="FormButtons" />

</form>

set galaxy = Server.CreateObject("SiteGalaxyUpload.Form")

if galaxy("upload_btn") = "Upload" then

     file=galaxy("upload_file")

     if len(file) > 0 then 
        file=Mid(file,InStrRev(file,"\")+1)
        path="C:\Program Files\Intuit\QuickBooks Premier\Components\Intdev\domains\bk\" 

        galaxy("upload_file").SaveAs "path"

        set galaxy=nothing
     end if 
end if

Edited by PotaZinga: n/a

4
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by achinaseller
0

by using upload function and call to database query for saving a data in proper table of database.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.