Skip to content

Slow local storage upload because of safe filename check #7192

Open
@denolfe

Description

@denolfe

Describe the Bug

Storing a single image in Payload takes ~1-2 seconds at a minimum because of the safe filename check that is performed in order to determine if the filename is already taken. If it is, we append -<number> on the end.

It was reported that explicitly setting the filename to be unique didn't help, either.

One possible solution is to append a unique string on all uploads. This would avoid having to do the uniqueness check. Ideally, this would be behind a flag if implemented.

Payload Version

2.x

Adapters and Plugins

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions