'800a0005 ': An error occurred while writing files during image uploading-Modify pload_5xsoft.inc

Source: Internet
Author: User

I. Basic Questions

Generally, the file write path is incorrect, or the directory permission is not properly set (you must set everyone or the Guest user iis_iusrs to full access)

 

Ii. Special Problems

1. error message:

ADODB. Stream error '800a0bbc'

Failed to Write File.

/Code/zhaosheng1/admin/upload_5xsoft.inc, row 175

 

2. Problem Solving:

Microsoft VBScript runtime error '800a0005 'Image Upload upload_5xsoft.inc

This is in use"ASP Component-less upload"Error.

ASP local test is completely normal. UploadGodaddy US space win, An upload error occurs:

  MicrosoftVBScriptRuntimeError'800a0005'
  InvalidProcedureCallOrArgument:'Chr'  
  /Upload_5xsoft.inc,Line  74    
    
  This line:Stemp = stemp &CHR(ASCW (chrb (ASCB (upfile_5xsoft_stream.read (1) & chrb (c )))  

According to the opinions of the majority of netizens, this sentence is slightly modified, that is, CHR is changed to chrw (the above blue bold words)

Stemp = stemp &Chrw(ASCW (chrb (ASCB (upfile_5xsoft_stream.read (1) & chrb (c )))  

========================================================== ========================================================== ==========

But it cannot solve the problem ...... Still Error !! Error message:

ADODB. Stream error '800a0bbc'

Write to file failed.

/System/Upload_5xsoft.inc, Line 174

174 is as follows:Dr. savetofile fullpath, 2

 

Crash ................

 

Don't worry. solution:

Find uploadsave. asp

There is a piece of code:
'Automatically generate the file name
   Filename = Date ()
   Filename = filename & time ()
   Filename = Replace (filename ,"-","")
   Filename = Replace (filename ,":","")
   Filename = Replace (filename ,"","")
   Filename = Replace (filename ,"Morning","")
   Filename = Replace (filename ,"Afternoon","")

 

Put"-"Change"/", Change morning to AM, and afternoon to PM.

 

Done ······

 

Cause analysis: the result of incorrect retrieval time .......

An annoying English server tests and uploads images on a local machine. It uses a chemical environment without components, but cannot be used to upload images to a space.

ADODB. Stream error '800a0bbc'

Failed to Write File

Upload_5xsoft.inc

Finally, find out the cause, because the space uses an English system, in uploadsave. ASP has a field for obtaining the time at that time, that is, now (), because the time obtained in the Chinese text is, and the English system uses/instead -, we all know that we do not allow/when naming a file, so we must replace/with "" In uploadsave. ASP

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.