#457·dragonfly

Image via Pathname causes error 404

Author: jrojas28Created Sep 20, 2016Updated Nov 6, 2019

Hello,

So recently I've been trying to implement Dragonfly on my program. Since I had a multipart form, I had to actually save the file so that later I could set the image via pathname when I finally saved the object.

This works fine when it comes to development environment. However, the same cannot be said for production. While the image does upload and I can find it on my server, the image URL reports a broken link with a 404 Not Found.

Just in case, I'm using: Rails 5 Dragonfly 1.0.12 Nginx Production environment.

Hope someone can assists me. Thanks!