My website has always used Tencent Cloud's COS , and static resources such as pictures, JS, and CSS exist on it, and the speed is ideal. But there is a common point: file management is quite inconvenient. Although uploading files can support a single file of 20G, deleting files can only be deleted one by one, and when there are files in the folder, they cannot be deleted. Delete things one by one, then delete the folder. Some people may say, just put it there, it doesn't affect it anyway, but for my obsessive-compulsive disorder, this is unbearable! ! Sometimes I really delete one by one, it's really hard.
So today I did some research on the Internet and found that there is an official API on the Internet to write scripts for batch control, which is not bad, and the wp plug-in is used. Next is the focus of this article, super invincible and convenient: apply for official FTP permissions to manage files.
step:
- Log in to Tencent Cloud official website and enter the console;
- Click on the upper right corner: work order - my work order;
- Left: Submit a work order - please select the problem category - storage and CDN - object storage COS;
- Then select: Enable FTP function. Fill in the Bucket for which you want to enable the FTP function below;
- You're done! The review speed did not say, I had to pass it in about 7-8 minutes.
At this point, it is almost completed, the rest is to create an FTP account (object storage service-Bucke list-modify configuration-FTP settings), and then log in with Winscp, you can see all files, no more Every time I upload a file, I have to log in to the official website and upload it. You can operate it at will here. Of course, the risk is also greater. If you make a mistake, it will be in vain. Here are some instructions for FTP:
Client configuration:
Address: ftp://ftp.file.myqcloud.com Port number: 9421 Encryption method: TLS explicit encryption (recommended) or no encryption (not recommended) Connection mode: pasv Passive mode timeout setting: 300 seconds (recommended)
Functional limitations:
Download operations are not supported. Remote move, copy, and rename operations are not supported. The maximum file limit is 100 MB.
Top comments (1)
study