Error using folders after upgrading from v3.47.0 to v3.48.0 #13222
-
After upgrading Payload CMS from v3.47.0 to v3.48.0, I encountered a PostgreSQL enum error when accessing the http://localhost:3000/admin/collections/media/payload-folders. Error
It seems like the query is injecting Configurationpayload.config.ts: export default buildConfig({
// ...
folders: {
browseByFolder: false,
},
}) I am only using import type { CollectionConfig } from 'payload'
export const Media: CollectionConfig = {
slug: 'media',
access: {
read: () => true,
update: ({ req: { user } }) => Boolean(user),
create: ({ req: { user } }) => Boolean(user),
delete: ({ req: { user } }) => Boolean(user),
},
admin: {
group: 'Admin',
},
fields: [
{
name: 'alt',
type: 'text',
defaultValue: '',
},
],
upload: true,
folders: true,
} |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I'm having the same problem and just realized of that |
Beta Was this translation helpful? Give feedback.
-
I found that disabling export default buildConfig({
// ...
folders: {
browseByFolder: false,
collectionSpecific: false, // defaults to true
},
}) However, I would prefer to use |
Beta Was this translation helpful? Give feedback.
-
Fixed in v3.49.0 |
Beta Was this translation helpful? Give feedback.
Fixed in v3.49.0