[ASP] 사이트 갤럭시를 이용하여 파일 업로드

2025. 12. 31. 22:51·Programming/ASP.NET

사이트갤럭시

사이트갤럭시를 이용하여 파일업로드 구현방법 소스
업로드 페이지

<form name="UploadForm" action="upload.asp" method="post" encType="multipart/form-data">
<input type='file' name='image1'>
</form>

파일을 저장하는 페이지

Dim file_upload, fs, fsdir, upfile, filedir
'사이트갤럭시 생성
Set file_upload = Server.CreateObject("SiteGalaxyUpload.Form")
Set fs = CreateObject("Scripting.FileSystemObject")
' 저장할 경로 구하기
fsdir = server.mappath("\") & "\upload\"
'이미지 업로드
upfile = file_upload("image1")
If Len(upfile) > 0 Then
  filedir = file_upload("image1").filepath
  Image1 = mid(filedir, instrrev(filedir,"\")+1)
  file_upload("image1").saveas fsdir & Image1 
  Response.Write "파일 업로드 완료!"
Else
  Response.Write "파일 업로드 실패!"
End If

오래된 자료를 포스팅 합니다.

'Programming > ASP.NET' 카테고리의 다른 글

ASP.NET 웹서비스 만들기 #4 (WebForm)  (0) 2025.12.18
ASP.NET 웹서비스 만들기 #3 (WebForm)  (1) 2025.12.18
ASP.NET 웹서비스 만들기 #2 (WebForm)  (0) 2025.12.17
ASP.NET 웹서비스 만들기 #1 (WebForm)  (0) 2025.12.16
'Programming/ASP.NET' 카테고리의 다른 글
  • ASP.NET 웹서비스 만들기 #4 (WebForm)
  • ASP.NET 웹서비스 만들기 #3 (WebForm)
  • ASP.NET 웹서비스 만들기 #2 (WebForm)
  • ASP.NET 웹서비스 만들기 #1 (WebForm)
레이조(RayCho)
레이조(RayCho)
개발자 레이조(RayCho)의 블로그입니다. 똑똑하게 배우고 기록하는 공간
  • 레이조(RayCho)
    레이(Ray)의 개발이야기
    레이조(RayCho)
  • 전체
    오늘
    어제
    • 분류 전체보기 (53) N
      • Programming (53) N
        • Python (5)
        • Flutter (4)
        • Delphi (20) N
        • Lazarus (1)
        • C#.NET (5)
        • ASP.NET (5)
        • Database (5)
        • Game Dev (0)
        • Web (5)
        • ETC (3)
      • Homebrew (0)
  • 블로그 메뉴

    • 홈
    • Introduce
    • 태그
    • 방명록
  • 링크

    • Naver Blog
    • Diary Blog
  • 공지사항

  • 인기 글

  • 태그

    delphi
    개발환경
    문법
    강좌
    Python
    Web
    objectpascal
    프로그래밍
    mssql
    C#
    소스코드
    웹프로그래밍
    SQL
    Flutter
    VCL
    델파이
    기초
    iis
    ASP.NET
    JSON
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.5
레이조(RayCho)
[ASP] 사이트 갤럭시를 이용하여 파일 업로드
상단으로

티스토리툴바