qs-smartphone) includes a built-in FiveMesh provider for photos, videos and voice notes starting in v3.1.45. The setup below follows Quasar’s media upload instructions.
Prerequisites
- Complete FiveMesh CDN setup in the workspace that will store the media.
- Install Quasar Smartphone v3.1.45 or later.
- Have access to the phone’s server files and an API key with
cdn:write.
Configure FiveMesh
1
Create an API key
In the FiveMesh dashboard, open Developers → API Keys and create a Developer API Key with
cdn:write. If you restrict the key to specific paths, allow phone or the base folder you configured in Quasar.You can also use the Server API Key for your registered server. It includes CDN write access to the workspace.2
Set the server-side API key
Open Quasar’s example uses
qs-smartphone/server/webhooks.lua. Replace the apiKey value in the existing _G.fivemesh table. Keep the other settings in place.phone as the base path, with images, videos and audios as subfolders. Match any key restrictions to your actual paths. Keep the key in this server-side file.3
Restart the phone
Save the file and run
restart qs-smartphone in the server console. Quasar uses FiveMesh first when its API key is configured.Verify uploads
Take a new photo, record a short video and send a voice note in the phone. Check that the files appear in the CDN object browser under the configured path. Open the photo and play both recordings in the phone.Troubleshooting
- The file or FiveMesh block is missing. Confirm your server is running v3.1.45 or later, then check the media setup instructions for your installed release.
- Uploads fail. Check the server console for an error. Verify that the key belongs to the correct workspace, includes
cdn:writeand allows the paths in the phone’s configuration. - An existing gallery item still uses another host. The provider setting applies to new uploads. Take a new photo to verify the switch.