Images cannot be uploaded in the ASP background in win7 system, prompting that the file writing fails.

Source: Internet
Author: User

1. IUSR and iis_iusrs are required!

2. Check whether the written file path is correct! The IUSR and iis_iusrs permissions are granted. Fileu. saveas server. mappat ("../Tup/" & filenamee) path is also true. In the past, it was done on the XP system. Why can't images be uploaded on the wi7 system? If the win7 system cannot be used, I finally got it done. I added the following question: filenamee = Replace (filenamee, "/", "") about system time reading!

Or create a directory

 

You can also create an uploadfiles folder in the west of the VM root directory to read and write data.
Randomize
Rannum = int (90000 * RND) + 10000

Filename = CSTR (filepath) & CSTR (Year (date () & month (date () & Day (date () & hour (now ()) & minute (now () & Second (now () & rannum &". "& fileext

 

 

File. savetofile server. mappath (".../..." & filename)
'File. savetofile server. mappath (filename)

 

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.