Click the bucket in the object store and click Upload. Drag the image or file to upload and click Upload

Two, how to detect pictures have problems

Find the picture you want to see and click on details

Third, copy the address of the object, paste it into the address bar, jump over to view the picture.

Four, cross-domain access rules (important! Set up thecorsRule)

Three, because in their own pages to send Ajax request Tencent cloud pictures will appear cross-domain problems, so now Tencent cloud to set up cross-domain configuration:

1. Find the bucket that I want to configure across domains. 2. Click Cross – Domain Access CORS Settings in Security Management.

3. Click add Rule in CORS Settings (set which domain names can be accessed)

After the project is launched in the future, there will be a domain name on the public network. Please fill in the domain name here. You can also write an * to indicate that all sources are acceptable.

5. Operation Methods represents the interface mode of method to be entered when sending axios.

6. Leave all other options blank and select OK.

4. Configure the secret key

Understanding this step: After setting up Ajax to allow cross-domain, not everyone can upload the image because the bucket is set to public read private write, so I need to set a password to ensure that no one else can upload it (to avoid paying for others).

How to configure the cloud API key?

1. Search for access management in cloud products

2. Click “New Key” in API Key Management, then do nothing, it will automatically generate a secret key

3. It generates a pair, where the ID is the username and the SecretKey is the login password

4. The purpose of this ID and password is to bring them along when the front-end project sends Ajax so that the operation succeeds.