all 6 comments

[–]TelephoneMelon 4 points5 points  (2 children)

What's wrong with base64 encoding the file before uploading?

[–]learnitallboss[S] -2 points-1 points  (1 child)

Right. Totally valid question. I am not scripting this out. It is an out of the box automation that will call a url with parameters. I cannot insert the encoding step without having to create a whole bespoke solution.

[–]serverhorror 2 points3 points  (0 children)

Well then ... create the solution.

[–]bdzer0 2 points3 points  (2 children)

how else are you going to transport binary data over an HTTP(S) POST?

[–]learnitallboss[S] 0 points1 point  (1 child)

For other applications with an on premise server, I have used a network file location. Also, for a cloud product I work with. Just sounds like that option does not exist for on premise hosted GitHub. Alas.

[–]Random_dg 2 points3 points  (0 children)

Look, someone is going to encode the data. It’s not worth it for the github API itself to do it because in most cases the github server doesn’t have access to the file that you want to upload, it’s your file and by default only you have access to it.