ASP upload picture hint ADODB. The solution of the Stream error ' 800A0BBC '

Source: Internet
Author: User
Tags save file

ASP upload picture hint ADODB. Stream error ' 800A0BBC '

There are many problems caused by this hint. Permissions are a common type. This is not much to say, there is a little bit strange is

windows2008 Display System time format unexpectedly is: 2013/3/8, not the previous 2013-3-8, because the renamed uploaded files are named according to the time, this requirement is 201338, but to the windows2008 platform finally became 2013/3/ 8, this will have a problem, that will be treated as a folder and path, will eventually lead to a real non-existent directory, and eventually write an error.

Solution:

After viewing in the upload save file There is a paragraph:

。。。。。。。。。。

Set File=upload.file ("File1")

If File.filesize>0 Then

' Automatically generate file name

Filename=date ()

Filename=filename&time ()

Filename=replace (filename, "/", "") (This is added later, added this sentence later.) Upload the picture to succeed)

Filename=replace (filename, "-", "")

Filename=replace (filename, ":", "")

Filename=replace (FileName, "", "")

Filename=filename+ "."

Filenameend=file.filename

Filenameend=split (Filenameend, ".")

。。。。。。。。。。。。。

Filename=replace (filename, "/", "") (This is added later, added this sentence later.) Upload the picture to succeed)

The meaning is to replace/substitute with empty

The problem has been solved.

Related Article

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.