ผมเขียนโค้ดให้แก้ไขข้อมูลรูปภาพ ให้ อัพโหลดขึ้นไปแทนที่ของเดิม แต่พออัพโหลดแล้ว
มัน erorr โค้ด upload อ่ะครับ
Error Type:
Microsoft VBScript runtime (0x800A01C9)
This key is already associated with an element of this collection
/alumnus/admin/include/getuploaddata.asp, line 50
'r' Open for reading only; place the file pointer at the beginning of the file.
'r+' Open for reading and writing; place the file pointer at the beginning of the file.
'w' Open for writing only; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it.
'w+' Open for reading and writing; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it.
'a' Open for writing only; place the file pointer at the end of the file. If the file does not exist, attempt to create it.
'a+' Open for reading and writing; place the file pointer at the end of the file. If the file does not exist, attempt to create it.
'x' Create and open for writing only; place the file pointer at the beginning of the file. If the file already exists, the fopen() call will fail by returning FALSE and generating an error of level E_WARNING. If the file does not exist, attempt to create it. This is equivalent to specifying O_EXCL|O_CREAT flags for the underlying open(2) system call. This option is supported in PHP 4.3.2 and later, and only works for local files.
'x+' Create and open for reading and writing; place the file pointer at the beginning of the file. If the file already exists, the fopen() call will fail by returning FALSE and generating an error of level E_WARNING. If the file does not exist, attempt to create it. This is equivalent to specifying O_EXCL|O_CREAT flags for the underlying open(2) system call. This option is supported in PHP 4.3.2 and later, and only works for local files.
ใน ASP จะมีการกำหนดพวก พารามิเตอร์ครับ ซึ่งต้องดูครับว่าใช้การกำหนดในส่วนไหนครับ