JG Docs
Used Vehicles

Image Uploads

JG Used Vehicles stores vehicle photos with a remote upload provider. These photos are used for marketplace listings, dealership stock and the shared photo library.

JG Used Vehicles does not support local image storage. Choose Qbox CDN, Fivemanage, Cloudflare R2 or AWS S3.

The provider setting lives in config/config.lua:

config/config.lua
Config.ImageStorageProvider = "fivemanage"

API keys and private storage settings live in config/config.photos.lua. This file is loaded on the server only. Keep it private.

Provider options

ProviderConfig valueBest forGuide
Fivemanage"fivemanage"FiveM-focused hosted image uploadsSetup guide
Cloudflare R2"r2"Cloudflare object storage and custom domainsSetup guide
AWS S3"s3"Existing AWS setups and CDN pipelinesSetup guide
Qbox CDN"qbox"Hosted uploads through QboxSetup guide

Set up image uploads

Choose a provider

Choose one of the remote providers above and open its setup guide.

Set the provider

Set Config.ImageStorageProvider in config/config.lua to the matching config value.

Add the credentials

Open config/config.photos.lua and fill in the block for your selected provider. Leave the other provider blocks unchanged.

Restart and test

Restart jg-usedvehicles, then open the vehicle camera. The camera performs a small test upload before it allows photography. Take one photo and confirm it appears in the photo library.

Keep secrets private

Never put real API keys in Git commits, support tickets, Discord screenshots or client-side Lua files.

Only config/config.photos.lua should contain upload credentials.

Troubleshooting

Last updated 26 August 2026

On this page