Skip to content

Deleting an image does not trigger the delete method of AbstractFileProviderService #8548

@SummerFans

Description

@SummerFans

Bug report

During the development of the image service module, I found that the delete method in the AbstractFileProviderService type could not be executed, which resulted in the inability to delete images stored by the third-party image service provider.### Describe the bug

A clear and concise description of what the bug is.

System information

Medusa version (including plugins):

  • @medusajs/medusa(1.20.6-preview-20240809113122)
  • @medusajs/file-local-next(0.0.3-preview-20240809113122)
    Node.js version: v20.11.1
    Database: postgresql 16
    Operating system: macos 14.4.1
    Browser (if relevant): Chrome

Screenshots

image image

Code snippets

// [PATH] @medusajs/utils/dist/file/abstract-file-provider.d.ts
....
// Executed successfully. 
upload(file: FileTypes.ProviderUploadFileDTO): Promise<FileTypes.ProviderFileResultDTO>;

// Unable to execute
delete(file: FileTypes.ProviderDeleteFileDTO): Promise<void>;
....

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions