|
|
|
|
¿ÀÁ¤¼® / 2000-06-06 / ¿ÀÈÄ 5:55:01 / 203.251.13.115
Á¶È¸¼ö : 118
|
[Áú¹®] °¨»ç..°¨»ç..²Ù¹÷..dsn¼³Á¤À» Àß ¸ø Ç߳׿ä..È÷È÷..¿ë¼¸¦.. |
°¨»çÇÕ´Ï´Ù..
ÀÌ ¾î¸®¼®Àº ³ðÀ» ¿ë¼ÇØ ÁÖ¼¼¿ä..
±Ùµ¥..
±× ¿¡·¯¸¦ ÀâÀ¸´Ï.. ¶Ç´Ù¸¥ ¿¡·¯°¡..
SiteGalaxyUpload.Form.1 error '80070006'
Failed to write to the file
/bbs/write_ok.asp, line 92
============================
À§¿Í °°Àº ¿¡·¯°¡ ¶ß³×¿ä..
92¶óÀÎ ÁÖº¯¼Ò½º´Â¿ä
=============================================
if Len(ImageFile) > 0 then ' ÷ºÎÆÄÀÏÀÌ ÀÖÀ» ¶§¸¸ ¾÷·Îµå
Set FSO = CreateObject("Scripting.FileSystemObject")
strDirectory = "c:/local project/brand/brand_local/brand114v3/file_brand114/bbsUpfiles/" ' ¼¹ö³» ÆÄÀÏÀÌ ÀúÀåµÇ´Â À§Ä¡
' °°Àº ÆÄÀϸíÀÌ ÀÖÀ» °æ¿ì ó¸® ½ÃÀÛ(¿Ã¸®´Â ÆÄÀÏ¸í µÚ¿¡ ÀϷùøÈ£¸¦ ³Ö¾îÁØ´Ù.)
attach_file = UploadForm("ImageFile").FilePath 'ÀúÀåµÉ ÆÄÀÏÀÇ À̸§À» ¾ò´Â´Ù.
FileSize = UploadForm("ImageFile").Size 'ÀúÀåµÉ ÆÄÀÏÀÇ Size¸¦ ¾ò´Â´Ù.
FileName = Mid(attach_file, InstrRev(attach_file, "\") + 1) ' ÆÄÀϸíÀ» ¾ò´Â´Ù.
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
' °°Àº ÆÄÀϸíÀÌ ÀÖÀ» °æ¿ì ó¸® ½ÃÀÛ ³¡
**92¶óÀÎ=> UploadForm("ImageFile").SaveAs strFileName ' ÆÄÀÏÀ» ½ÇÁ¦·Î ÀúÀåÇÑ´Ù.
end if
'ÆÄÀÏ ¾÷·Îµå ³¡
=============================================
ÀÔ´Ï´Ù.. Á» ºÁÁÖ¼¼¿ä.. |
|
|
|