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

Recommended Answers

All 3 Replies

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

Thanks for sharing...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.