Skip to content

对象存储无法上传文件夹,会变成文件 #6410

Closed
@beijifengren

Description

@beijifengren

Please make sure of the following things

  • I have read the documentation.
    我已经阅读了文档

    I'm sure there are no duplicate issues or discussions.
    我确定没有重复的issue或讨论。

    I'm sure it's due to AList and not something else(such as Network ,Dependencies or Operational).
    我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

    I'm sure this issue is not fixed in the latest version.
    我确定这个问题在最新版本中没有被修复。

AList Version / AList 版本

v3.33.0

Driver used / 使用的存储驱动

本机存储 转 S3 对象存储

Describe the bug / 问题描述

添加存储时使用本机存储挂载了一个本地的目录,之后启用对象存储,将本地的这个目录转为S3对象存储,在Windows下使用S3 browser 进行上传文件夹,上传的文件夹会变成文件,导致该文件夹里面的文件均无法上传,但是单独上传文件则是可以的。同时在S3 browser中New Folder 也会变成file,这个应该是bug吧,因为我切换到minio创建的存储桶,则不存在该问题。

Reproduction / 复现链接

Config / 配置

Logs / 日志

No response

Activity

welcome

welcome commented on Apr 30, 2024

@welcome

Thanks for opening your first issue here! Be sure to follow the issue template!

miyunwangluo

miyunwangluo commented on May 4, 2024

@miyunwangluo

我采用minio-go测试了下 上传文件 比如1.png没问题 可以正常上传 但带路径比如uploads/1.png就不行了 提示Failed to upload file: The specified key does not exist. 应该是alist的对象存储还没实现对路径的支持吧

beijifengren

beijifengren commented on May 4, 2024

@beijifengren
Author

我采用minio-go测试了下 上传文件 比如1.png没问题 可以正常上传 但带路径比如uploads/1.png就不行了 提示Failed to upload file: The specified key does not exist. 应该是alist的对象存储还没实现对路径的支持吧

这时候你去看存储桶中的数据,应该会发现出现了一个uploads的文件本来应该是uploads的文件夹,他把创建文件夹的操作和创建文件的操作混淆了吧

itsHenry35

itsHenry35 commented on May 7, 2024

@itsHenry35
Contributor

我也发现这个问题了,回头修

gowy222

gowy222 commented on May 11, 2024

@gowy222

S3接口将来会产生bug

S3 是一个对象存储服务,它使用键值对的方式存储对象(文件)
在 S3 中,文件夹实际上是一个命名空间的概念,用于组织和管理对象

S3这块,建议重新评估,要不要直接砍掉..

itsHenry35

itsHenry35 commented on May 11, 2024

@itsHenry35
Contributor

S3接口将来会产生bug

S3 是一个对象存储服务,它使用键值对的方式存储对象(文件) 在 S3 中,文件夹实际上是一个命名空间的概念,用于组织和管理对象

S3这块,建议重新评估,要不要直接砍掉..

回答:#6401 (comment)

itsHenry35

itsHenry35 commented on Jul 17, 2024

@itsHenry35
Contributor

Fixed in 2b74999

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @beijifengren@gowy222@itsHenry35@miyunwangluo

        Issue actions

          对象存储无法上传文件夹,会变成文件 · Issue #6410 · AlistGo/alist