943,201 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 73
  • ASP RSS
Jul 21st, 2010
0

file upload

Expand Post »
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..
asp Syntax (Toggle Plain Text)
  1.  
  2.  
  3.  
  4. <form name="upload_form" enctype="multipart/form-data" action="fileUploadForm.asp"method="post">
  5.  
  6. <input type="file" name="upload_file" size="30"/>
  7. <input type="submit" name="upload_btn" value="Upload" class="FormButtons" />
  8.  
  9. </form>
  10.  
  11. set galaxy = Server.CreateObject("SiteGalaxyUpload.Form")
  12.  
  13. if galaxy("upload_btn") = "Upload" then
  14.  
  15. file=galaxy("upload_file")
  16.  
  17. if len(file) > 0 then
  18. file=Mid(file,InStrRev(file,"\")+1)
  19. path="C:\Program Files\Intuit\QuickBooks Premier\Components\Intdev\domains\bk\"
  20.  
  21. galaxy("upload_file").SaveAs "path"
  22.  
  23. set galaxy=nothing
  24. end if
  25. end if
  26.  
Last edited by PotaZinga; Jul 21st, 2010 at 9:59 am.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
PotaZinga is offline Offline
16 posts
since Jul 2010
Jul 28th, 2010
0
Re: file upload
by using upload function and call to database query for saving a data in proper table of database.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
hirenmodi is offline Offline
12 posts
since Jul 2010
Jul 28th, 2010
0
Re: file upload
Thanks for sharing...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
smilingrose is offline Offline
6 posts
since Jul 2010
Jul 28th, 2010
0
Re: file upload
Thanks for sharing
Reputation Points: 9
Solved Threads: 0
Newbie Poster
achinaseller is offline Offline
16 posts
since May 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: asp how to develop Web Games
Next Thread in ASP Forum Timeline: Select syntext for database search





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC