Issue with PayloadCMS File Upload on Digital Ocean VPS

default discord avatar
last month

Hi everyone, I'm running into an unusual problem with PayloadCMS. It works perfectly for local image uploads, but on my Digital Ocean VPS (Droplet) in production, I consistently encounter a 'There was a problem uploading the file' error, specifically when attempting to upload images. The rest of the app operates without any trouble on the VPS – creating, deleting, and modifying collections all work fine. Do you have any insights into why this might be occurring? Thanks!

Nevermind. Just had to sudo

sudo yarn build - sudo yarn build - sudo yarn serve
  • discord user avatar
    Payload Team
    last month

    Hey julian - glad you got that figured out. I thought it might have been a permissions issue with your media folder.

    Happy building!

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!


Connect with the Payload Community on Discord



Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.