product images

36 views
Skip to first unread message

fugee ohu

unread,
Aug 15, 2018, 11:23:10 PM8/15/18
to Spree
I was adding my first product I got an error when I tried to upload an image I looked in the Gemfile and noticed there was no paperclip or carrierwave How are file uploads handled? Also, how do I exchange links to images for file uploads when I want? Thanks

Vector

unread,
Aug 16, 2018, 9:21:23 PM8/16/18
to Spree
In latest version of spree used active storage for uploading images. See the avtive storsge documentation to learn how to exchange.

Deepak Mahakale

unread,
Aug 17, 2018, 7:55:57 AM8/17/18
to Spree
You  need to use ActiveStorage follow this link https://github.com/thoughtbot/paperclip/blob/master/MIGRATING.md or if you still want to continue using paperclip you can start the server by setting the env variable 
SPREE_USE_PAPERCLIP=true rails server

But remember, paperclip is deprecated and will be removed in Spree 4

fugee ohu

unread,
Aug 26, 2018, 8:42:31 PM8/26/18
to Spree
Thanks Sorry  I  forgot gems aren't needed for file uploads 

fugee ohu

unread,
Sep 6, 2018, 6:08:55 AM9/6/18
to Spree


On Friday, August 17, 2018 at 7:55:57 AM UTC-4, Deepak Mahakale wrote:
Where do the filenames and directory names come from?
 storage tree
storage
├── b2
│   └── ST
│       └── b2ST4KEbtEpEcgpzFtYHQq2b
├── Bo
│   └── bp
│       └── BobpbqSDKctpvoL9V5DmAbjG
├── RL
│   └── sA
│       └── RLsAdzakQ1ZsCH3Mvo4eVHRA
└── va
    └── ri
        └── variants
            ├── b2ST4KEbtEpEcgpzFtYHQq2b
            │   ├── 13ae60415f55e36e6746d2e60753ff750d06d9c890b764d658ae3da6bb87d09b
            │   └── 3640b958c55436fba0288800b239402d58b017d6a0d56d9fe0988fa031cf39e3
            ├── BobpbqSDKctpvoL9V5DmAbjG
            │   ├── 13ae60415f55e36e6746d2e60753ff750d06d9c890b764d658ae3da6bb87d09b
            │   └── 3640b958c55436fba0288800b239402d58b017d6a0d56d9fe0988fa031cf39e3
            └── RLsAdzakQ1ZsCH3Mvo4eVHRA
                ├── 13ae60415f55e36e6746d2e60753ff750d06d9c890b764d658ae3da6bb87d09b
                └── 3640b958c55436fba0288800b239402d58b017d6a0d56d9fe0988fa031cf39e3

Reply all
Reply to author
Forward
0 new messages