Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Media deleted when CMS is updated

default discord avatar
drojkind2 years ago
3

Im currently using the hosted version of Payload CMS.



Every time I push a change all media from my site gets wiped. Items are being stored locally in dev and using default storage on hosted payload.



Example collection:



import { CollectionConfig } from 'payload/types';

const Audio: CollectionConfig = {
    slug: 'audio',
    access: {
        read: () => true,
    },
    fields: [
        {
            name: 'title',
            type: 'text',
            required: true,
        },
        {
            name: 'artist',
            type: 'text',
            required: true,
        },
    ],
    upload: {
        staticURL: '/audio',
        staticDir: 'audio',
        mimeTypes: ['audio/*'],
    },
};

export default Audio;

Any ideas what might be causing this? Assume a config issue.

  • default discord avatar
    jarrod694202 years ago

    where is payload hosted for you? are you using docker?

  • default discord avatar
    drojkind2 years ago

    @jarrod69420 using payloadcms cloud.

  • default discord avatar
    jarrod694202 years ago

    Do you have the payload cloud plugin installed? Sounds like you might be missing that piece!

    https://github.com/payloadcms/plugin-cloud
Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.