• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

    • ⚠️ Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • ✅ Confirm that the server meets the System Requirements
    • 🔥 Check for any available Hotfix - your issue could be already reported/fixed
    • 📚 Read documentation - It will be required to Debug and understand Errors for a faster support response

Is video upload via API supported?

Version
4.1.4
PHP version
8.2.19
Database driver
MariaDB
Database version
11.3.2-MariaDB-1:11.3.2+maria~ubu2204
Web browser
Chrome

bjoern.busch

Chevereto Member
Hi all,

I finally upgraded to 4.1.4 and the general functionality is fine. I can upload images and videos through the web UI, looks awesome.

I have a custom Go implementation, with which I can send a picture to a Threema (messenger) bot and it then gets uploaded via Go code and the API V1 to my gallery. For images, I works fine, but for videos it doesn't work. I'm still trying to understand where things go wrong, but I haven't touched that code in a while. I think it fails with "Can't get target upload source info", but I'm not 100% certain whether it's chevereto that reports this error.

So before I get lost in that rabbit hole, I wanted to check, whether it's in general supported to upload videos via API via URL parameter or whether any special argument is needed or whether I have to upload the video directly as a binary.

According to the documentation, the source parameter (https://v4-docs.chevereto.com/developer/api/api-v1.html#source) can be an image if it's a URL. Can this also be a video? The example response shows that a video was uploaded (https://v4-docs.chevereto.com/developer/api/api-v1.html#example-response-json)

Thanks for any advice,
Bjoern
 
Last edited:
Hi,

For v4.1.X you need to pass the mimetype=video/mp4 parameter. It is needed to hint the uploader, doesn't matter if that's the actual video file mime type.

For v4.2+ you don't need any special parameter, it detects video auto.
 
Thanks for that hint, but even with that parameter I get the same error message. But at least with the source code link I have now found the place where the error is coming from. I feel like I'm losing the type info somewhere, so now I'm adding log messages all over the place to follow the path and get to the source of it. Time to learn php debugging 🙂
 
Back
Top