Solve the http problem by changing the default settings because it should be https by default. #1289
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Normally, when calling the object storage system class and invoking the put function to upload an image file to the bucket, it returns an HTTP URL by default. However, it should be HTTPS by default. This is crucial because some people use it, receive the result URL, and then promptly apply it to their work. When images from the object storage system, which uploads with the default setting 'secure=false,' are displayed on a website, it can make the website appear insecure. For certain websites that request location access, devices like iOS and Android 10, 14 may outright reject it. I believe the default setting should be adjusted to 'true' to address this issue.
This is because, typically, Alibaba Cloud provides HTTPS by default to enhance security. I have consulted with the SA (Solution Architect) of Alibaba Cloud Thailand, and he agrees that the code can be confusing. Many developers who call the library may face the issue of receiving images with HTTP URLs, necessitating them to use '.replace('http','https'). If this is rectified, I am confident it will resolve the problem for many developers.