Skip to content

Media upload does not save file in production #3149

Answered by thefrana
thefrana asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry, I have found the bug in the meanwhile. The problem was that in development, the media files were saved to /files/media, like shown in the example.

However, when compiled to production, the project gets compiled to dist folder, so in the end, the Payload saves media files to /dist/files/media. Silly error, but took a while to spot it.

Thanks!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@thefrana
Comment options

Answer selected by thefrana
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants