Commit Graph

229 Commits

Author SHA1 Message Date
Kuingsmile
3e98fd4325 Feature(custom): add log for cloud delete 2025-08-22 15:02:34 +08:00
Kuingsmile
934a716106 🐛 Fix(custom): fix picbed config reset issue
ISSUES CLOSED: #375
2025-08-21 09:36:04 +08:00
Kuingsmile
fbf0dcc691 Feature(custom): add gallery picbed filter
ISSUES CLOSED: #309
2025-08-20 15:34:54 +08:00
Kuingsmile
8df94c0c9f 🐛 Fix(custom): fix copy item order issue
ISSUES CLOSED: #386
2025-08-18 13:52:29 +08:00
Kuingsmile
f11a4264d0 🎨 Style(custom): lint code 2025-08-15 13:29:09 +08:00
yang07861
ae366bab21 fix(s3): Correctly handle file deletion with custom URL (#358)
* fix(s3): Correctly handle file deletion with custom URL

When a custom URL is configured for an S3-compatible provider, the
application was failing to delete files from the remote bucket. This was
because the deletion logic incorrectly used the full pathname of the
custom URL as the S3 object key, instead of the object's actual key
within the bucket.

This commit modifies the `removeFileFromS3InMain` function to be aware
of the `customUrl` setting. If a custom URL is in use, the logic now
correctly strips the custom URL's prefix from the image URL to
derive the proper S3 object key before sending the `DeleteObject`
command.

* feat(debug): Add detailed logging to S3 deletion

This commit adds extensive console logging to the `removeFileFromS3InMain`
function in `src/main/utils/deleteFunc.ts`.

The purpose of this change is to debug an issue where file deletion
fails with a custom URL. These logs will capture the state of key
variables (configMap, imgUrl, customUrl, fileKey) and any errors
returned by the S3 client during the deletion process. This is a
temporary debugging measure.

* fix(s3): Correctly handle file deletion using urlPrefix

This commit fixes a bug where file deletion from an S3-compatible
provider would fail if a custom URL was configured. The root cause was
that the logic was looking for a `customUrl` property in the config,
when the correct property name is `urlPrefix`.

The `removeFileFromS3InMain` function has been updated to use the
correct `urlPrefix` property. This ensures that when a custom URL
is present, the S3 object key is derived correctly by stripping the
prefix, allowing the deletion to succeed.

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2025-08-14 15:41:02 +08:00
Kuingsmile
9d4e280b3d 🐛 Fix(custom): fix titlebar in macos 2025-08-14 14:25:20 +08:00
Kuingsmile
3ebbeb4dc7 📦 Chore(custom): modify asarunpack setting 2025-08-14 13:35:36 +08:00
Kuingsmile
74a3333a43 🐛 Fix(custom): fix resources path 2025-08-14 11:09:21 +08:00
Kuingsmile
f0b0e55937 Perf(custom): add memory monitor and optimiz memory usage 2025-08-13 15:11:55 +08:00
Kuingsmile
0bf435a0da 🐛 Fix(custom): fix drag upload of upload page 2025-08-11 14:59:25 +08:00
Kuingsmile
112c08d92c Feature(custom): add vitest and optimize performance of aeshelper 2025-08-11 12:24:25 +08:00
Kuingsmile
4b8bfded1d Feature(custom): rewrite setting page, WIP 2025-08-06 11:19:19 +08:00
Kuingsmile
32c3eaba12 Feature(custom): optimize mini page 2025-08-05 16:46:30 +08:00
Kuingsmile
70396c3e5c Feature(custom): optimize i18n and platform funcs 2025-08-01 13:38:37 +08:00
Kuingsmile
236b7c6e7d Feature(custom): split i18n in main and renderer, use vue-i18n 2025-08-01 13:10:05 +08:00
Kuingsmile
054f4b4cff 🚧 WIP(custom): v3.0.0 migrate to vite and esm 2025-07-31 17:37:30 +08:00
Kuingsmile
cd76bc7c10 🔨 Refactor(custom): remove debug code 2025-07-18 17:05:01 +08:00
Kuingsmile
64747887e1 🐛 Fix(custom): fix webdav backup bug for custom path close #347 2025-07-18 17:00:58 +08:00
Kuingsmile
3a25da94e7 Feature(custom): always copy workflow file for macos 2025-06-08 17:31:52 +08:00
Kuingsmile
d5f137e2b7 Feature(custom): add WebDAV sync configuration options 2025-06-07 22:25:51 +08:00
Kuingsmile
fd5316a7b9 Feature(custom): optimize short url
ISSUES CLOSED: #252
2024-11-16 10:14:52 +08:00
Kuingsmile
876ec16a48 🔨 Refactor(custom): refactored cli upload 2024-11-13 15:13:00 +08:00
Kuingsmile
7d5eaf17c4 🔨 Refactor(custom): refactored aeshelper 2024-11-13 13:56:09 +08:00
Kuingsmile
b843278b2c Feature(custom): add support for sink
ISSUES CLOSED: #254
2024-10-31 14:14:32 +08:00
Kuingsmile
8962a46e85 Feature(custom): support secondary picbed upload
ISSUES CLOSED: #226
2024-07-31 11:24:32 +08:00
Kuingsmile
b30dc4dcfc 🐛 Fix(custom): fix s3 delete bug
ISSUES CLOSED: #212
2024-06-23 19:04:08 +08:00
Kuingsmile
5af8a6b529 🎨 Style(custom): format with prettier 2024-06-15 19:37:50 +08:00
Kuingsmile
5ddc182bd1 Feature(custom): refactor all main ipc event 2024-06-12 23:38:17 +08:00
Kuingsmile
e87e3999b4 🔨 Refactor(custom): refactored all imports 2024-06-09 11:53:07 +08:00
Kuingsmile
8a565c1333 Feature(custom): add tray tooltip 2024-06-07 22:59:08 +08:00
Kuingsmile
f6936dae51 🔨 Refactor(custom): refactor short url generation function 2024-05-23 21:10:10 +08:00
Kuingsmile
4a0a882de1 Perf(custom): improve the performance of clipboard watching 2024-05-23 16:43:48 +08:00
Kuingsmile
e16737e69c Feature(custom): improve speed of download config files 2024-05-23 09:23:29 +08:00
Kuingsmile
ace6f2e971 🔨 Refactor(custom): refactor short url ggenerationg func 2024-05-16 13:20:29 +08:00
Kuingsmile
3681681401 🐛 Fix(custom): fix aws s3 urlprefix bug 2024-04-22 16:27:31 +08:00
Kuingsmile
2fab2a9765 🔨 Refactor(custom): refactor encrypt class 2024-04-18 17:31:37 +08:00
Kuingsmile
0f7b043da3 🔨 Refactor(custom): refactor private to sharp in es6 2024-04-15 23:12:02 +08:00
Kuingsmile
c35776201a 🔨 Refactor(custom): add config file type 2024-04-09 15:03:32 +08:00
Kuingsmile
9c6504c218 Feature(custom): add support for cf worker short url service
ISSUES CLOSED: #170
2024-03-11 22:04:50 +08:00
Kuingsmile
1fdc8fc79d Feature(custom): add c1n token setting 2024-03-01 15:02:34 +08:00
Kuingsmile
e18018dfa3 🔨 Refactor(custom): add eslint disable line 2024-02-22 01:59:05 -08:00
Kuingsmile
58248bc2ea 🐛 Fix(custom): fix s3 remote delete bug when url is modified locally 2024-01-22 02:45:21 -08:00
Kuingsmile
0e81ccdf81 🐛 Fix(custom): fix gallery copy bug of aws-s3 2024-01-20 00:40:54 -08:00
Kuingsmile
b7b86b2616 Feature(custom): optimize detele function for aws s3 2023-10-23 18:11:00 +08:00
Kuingsmile
95f1035608 Feature(custom): support gitea for setting file sync 2023-10-21 23:24:17 +08:00
Kuingsmile
018971509a Feature(custom): upload api now return encrypted full result 2023-10-17 16:01:54 +08:00
Kuingsmile
e8ea905a94 Feature(custom): add tk analytic 2023-10-13 10:11:49 +08:00
Kuingsmile
75601e7aee 🐛 Fix: fix macos right click menu file bug 2023-10-11 14:03:51 +08:00
Kuingsmile
819dfbb2f1 🐛 Fix: fix sftp delete error when the user don't have ssh permission
ISSUES CLOSED: #100
2023-09-30 20:55:07 +08:00