Getting Started
INFO
If you have used the v1 version before (versions before the first half of 2025), you can refer to Migrate from v1 to migrate to the v2 version. The v2 version doesn't have major changes in functionality and should be easy to get started with.
As a tool for managing images on S3, S3 Image Port requires you to provide S3 bucket information to access and upload images.
Configure S3 (or its compatible services)
If you don't have an S3 bucket yet, please create one according to the guide below. Simply put, this requires 3 steps:
- Create an S3-compatible storage bucket on the relevant platform.
- Obtain information such as endpoints and keys needed to access the bucket.
- Set access permissions and CORS for the bucket.
The above three points are essential steps to use the S3 Image Port.
🔴 CORS configuration required!
Since we are a web-based project, configuring CORS is necessary. Most of the "connection issues" reported by users are due to not configuring CORS.
For details on how to configure CORS, please continue reading.
Step-by-Step Guide for Platforms
Currently, we have written step-by-step guides for the following platforms. If you are using them, you can click the link to view directly. After completing the tutorial, you should be able to use the S3 Image Port!
- Cloudflare R2 Step-by-Step Guide provides a step-by-step guide on how to configure the S3 settings of this panel when using Cloudflare R2.
General Requirements
S3 Image Port requires the following information/permissions to work properly:
- Connection information such as
Endpoint
,Region
,Access Key ID
,Secret Access Key
, - A direct link prefix for accessing images, which we call
Public URL
, - Correct CORS configuration.
The first point needs no further elaboration; you can refer to how to obtain it yourself.
Public URL
In the current version (1.6.0), images in the storage bucket must be directly accessible via a link.
For example, if an image's path in the storage bucket is i/2024/05/29/name.jpg
and it can be accessed directly (without authentication) via the link https://i.yfi.moe/i/2024/05/29/name.jpg
, then https://i.yfi.moe/
is the Public URL you need to fill in.
If you are directly using the "public storage bucket" function of certain S3-compatible services, the same logic applies. For example, for Cloudflare R2, it should look like https://pub-<a bunch of characters>.r2.dev
. For Tencent Cloud COS, it should look like https://<BucketName-APPID>.cos.<Region>.myqcloud.com
.
CORS Configuration
What is CORS?
Cross-Origin Resource Sharing (CORS) is a mechanism that uses HTTP headers to allow servers to indicate any origins (domain, scheme, or port) other than their own from which a browser should permit loading resources.
In simple terms, if the site A.com
wants to access resources on the site B.com
, B.com
needs to configure CORS to allow it. In this case, imageport.app
is like A.com
, and the link to your S3 storage bucket is like B.com
. Therefore, we need to configure CORS policies on the S3 storage bucket to allow access requests from imageport.app
.
To use it properly, you need to
- Include
https://imageport.app
in the allowed Origins, - Allow
GET
,HEAD
,POST
,PUT
, andDELETE
methods, - And allow
*
headers.
If confused, you can check the detailed guide in the platform step-by-step tutorial above for the platform you are using, or refer to the platform documentation yourself.
Start Using S3 Image Port
- If you have configured the S3 bucket as described above, you should now have all the information needed to fill in the S3 settings! After entering the information, you can click the test button to check if the configuration is correct. Go to S3 Settings to fill in.
- Other settings can remain at their default values for now.
- Go to Gallery, click the "Load Images" button to start using.