|
|
|
|
¹®Èñö / 2000-07-06 / ¿ÀÈÄ 3:47:40 / 211.51.20.144
Á¶È¸¼ö : 127
|
[Áú¹®] ¾÷·Îµå ±ÇÇÑ ¿¡·¯Á» ...¼³¸íÇØÁÖ¼¼¿ä |
»çÀÌÆ® °¶·°½Ã¸¦ ÀÌ¿ëÇؼ ¾÷·Îµå¸¦ ¸¸µé°í Àִµ¥,´ÙÀ½°ú °°Àº ¸Þ¼¼Áö°¡ ¶å´Ï´Ù.
SiteGalaxyUpload.Form.1 error '80070006'
Failed to write to the file
/sellup/write_ok.asp, line 81
ÀÌ °÷¿¡ ´ëÇÑ ¼Ò½º´Â ÈÀÏÀ» ÁöÁ¤ÇØÁÖ´Â °æ·ÎÀ̰ŵç¿ä...
Àüü ¾÷·Îµå ºÎºÐÀÇ ¼Ò½º´Â
#############################
'÷ºÎ ±×¸²ÈÀÏ ¾÷·Îµå ½ÃÀÛ=====================
file = UploadForm("AttachImage")
If Len(file) > 0 then '÷ºÎ ÈÀÏÀÌ ÀÖÀ»¶§¸¸ ¾÷·Îµå============
'ÆÄÀÏ Çڵ鸵 ÀνºÅϽº »ý¼º
Set FSO = CreateObject("Scripting.FileSystemObject")
strDirectory = "" ' ¼¹ö³» ÆÄÀÏÀÌ ÀúÀåµÇ´Â À§Ä¡
' °°Àº ÆÄÀϸíÀÌ ÀÖÀ» °æ¿ì ó¸® ½ÃÀÛ(¿Ã¸®´Â ÆÄÀÏ¸í µÚ¿¡ ÀϷùøÈ£¸¦ ³Ö¾îÁØ´Ù.)
attach_file = UploadForm("AttachImage").FilePath 'ÀúÀåµÉ ÆÄÀÏÀÇ °æ·Î¸¦ ¾ò´Â´Ù.
FileSize = UploadForm("AttachImage").Size 'ÀúÀåµÉ ÆÄÀÏÀÇ Size¸¦ ¾ò´Â´Ù.
FileName = Mid(attach_file, InstrRev(attach_file, "\") + 1) ' ÆÄÀϸíÀ» ¾ò´Â´Ù.(Àüü C:\Inetpub\wwwroot\...)
strName = Mid(FileName, 1, Instr(FileName, ".") - 1) ' È®ÀåÀÚ¸¦ Á¦¿ÜÇÑ ÆÄÀϸíÀ» ¾ò´Â´Ù.
strExt = Mid(FileName, Instr(FileName, ".") + 1) 'È®ÀåÀÚ¸¦ ¾ò´Â´Ù.
bExist = True ' ¿ì¼± °°ÀºÀ̸§ÀÇ ÆÄÀÏÀÌ Á¸ÀçÇÑ´Ù°í °¡Á¤
strFileName = strDirectory & strName & "." & strExt ' ÀúÀåÇÒ ÆÄÀÏÀÇ ¿ÏÀüÇÑ À̸§À» ¸¸µê
countFileName = 0 ' ÆÄÀÏÀÌ Á¸ÀçÇÒ °æ¿ì, À̸§ µÚ¿¡ ºÙÀÏ ¼ýÀÚ¸¦ ¼¼ÆÃÇÔ.
Do While bExist ' ¿ì¼± ÀÖ´Ù°í »ý°¢ÇÔ.
If (FSO.FileExists(strFileName)) Then ' °°Àº À̸§ÀÇ ÆÄÀÏÀÌ ÀÖÀ» ¶§
countFileName = countFileName & 1 'ÆÄÀÏ¸í¿¡ ¼ýÀÚ¸¦ ºÙÀÎ »õ·Î¿î ÆÄÀÏ À̸§ »ý¼º
FileName = strName & "_" & countFileName & "." & strExt
strFileName = strDirectory & FileName
Else '°°Àº À̸§ÀÇ ÆÄÀÏÀÌ ¾øÀ» ¶§
bExist = False
' ÆÄÀÏÀÌ Á¸ÀçÇÏÁö ¾ÊÀ¸¹Ç·Î.
End If
Loop
' °°Àº ÆÄÀϸíÀÌ ÀÖÀ» °æ¿ì ó¸® ½ÃÀÛ ³¡
'Response.Write strfilename
UploadForm ("AttachImage").SaveAs "C:\Inetpub\wwwroot\up\data\"& strfilename ' ÆÄÀÏÀ» ½ÇÁ¦·Î ÀúÀåÇÑ´Ù.<====¿¡·¯ºÎºÐ
end if
##########################
À§¿Í °°½À´Ï´Ù.¶ÇÇÑ IUSER_WWW¿¡°Ô ¹Ù²Ù±â ±ÇÇѵµ ÁÖ¾ú°Åµç¿ä
|
|
|
|