uptime-kuma icon indicating copy to clipboard operation
uptime-kuma copied to clipboard

Support `Binary` body encoding via allowing a File Upload

Open ltx0633 opened this issue 10 months ago • 7 comments

⚠️ Please verify that this question has NOT been raised before.

  • [X] I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

I have an interface where the post content submitted is binary, but kuma just doesn't support it

📝 Error Message(s) or Log

No response

🐻 Uptime-Kuma Version

latest

💻 Operating System and Arch

centos

🌐 Browser

any

🖥️ Deployment Environment

  • Runtime: k8s
  • Database: sqlite
  • Filesystem used to store the database on: nfs
  • number of monitors: 10

ltx0633 avatar Apr 28 '24 07:04 ltx0633

What UI do you think would be suitable for inputting a binary body for your request?

chakflying avatar Apr 28 '24 08:04 chakflying

What UI do you think would be suitable for inputting a binary body for your request?

image

I use the following command to detect the service curl -XPOST https://${my_services} --data-binary '@install.bin'

ltx0633 avatar Apr 28 '24 09:04 ltx0633

What Nelson was probing for is not how you are currently doing this, but rater how this should work. I think another Body Encoding => file upload field might be the best solution. image

CommanderStorm avatar Apr 28 '24 16:04 CommanderStorm

On another note:

Filesystem used to store the database on: nfs

Please see the warnings in our wiki/readme:

[!WARNING] Filesystem support for POSIX file locks is required to avoid SQLite database corruption. Be aware of possible file locking problems such as those commonly encountered with NFS. Please map the /app/data-folder to a local directory or volume.

CommanderStorm avatar Apr 28 '24 16:04 CommanderStorm

Will this make any progress?

ltx0633 avatar May 06 '24 01:05 ltx0633

What do you mean? Your feature-request is not even a week old.. => not having much progress on an issue in this timeframe is normal.

I think you are a bit confused about how OpenSource works. Software is delivered "as is" (no warranty, no guarantees). We are not a company so you are not paying for deliverables/timelines.

=> if you need an additional feature, you can:

  • developing it and contribute the change upstream (see our contribution guide).
  • Give the pull request a 👍🏻 to give others a better insight in what the rest of the community wants/needs
  • sponsor the project or write out a bounty on this PR..

CommanderStorm avatar May 06 '24 05:05 CommanderStorm

In case you just wanted to unblock yourself: Uptime Kuma does have the push-monitor. See https://github.com/louislam/uptime-kuma/tree/master/extra/push-examples for examples on how this can be used.

CommanderStorm avatar May 06 '24 05:05 CommanderStorm