gistpad
gistpad copied to clipboard
Could not upload ZIP files
I can upload TXT files normally with Upload File(s). However, this command does not work for ZIP files.
Could you confirm if GistPad does not support uploading ZIP files?
Hmm are you seeing this issue only with zip files specifically? Or do all text files work, while no binary files work?
I think I have logic that special cases images, and so I may just need to also special case zip files so that when uploaded, they're considered binary and uploaded via a git push.
Let's have copilot take an initial look and help me track down the issue 👍
Hmm are you seeing this issue only with zip files specifically? Or do all text files work, while no binary files work?
I think I have logic that special cases images, and so I may just need to also special case zip files so that when uploaded, they're considered binary and uploaded via a git push.
Let's have copilot take an initial look and help me track down the issue 👍
I tested and it works for TEX, TXT and IPYNIB files. However, it does not work for JPG, PNG, PDF nor ZIP files.
Hmm OK, it sounds like binary file uploads in general regressed somehow. I confirmed that zip files are seen as binary (link), and since you confirmed images aren't working either, then it's definitely not an issue with zips specifically.
This used to work, and so I'll have to debug the code to see what's going on with the binary uploads.
Quick question: do you have git installed on your machine? I just ask because the way that binary uploads work is that it clones the repo for the gist, and then commits/pushes the binary file to it. This is necessary because the Gist REST API doesn't allow uploading binary files, and so I need to use git.
That said, if you could confirm you have git installed, then I can look at see what's going on.
@lostintangent I confirm that I installed git on my Windows 11:
On the other hand, using git to upload ZIP files to https://gist.github.com (as here) works fine for me.
@lostintangent May I ask if you get any news?
This is now fixed and is included in the latest marketplace release. Thanks again for the bug report!
Thank you very much for your support. I confirm that I can now upload zip files within GistPad.