gistpad icon indicating copy to clipboard operation
gistpad copied to clipboard

Could not upload ZIP files

Open leanhdung1994 opened this issue 6 months ago • 5 comments

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?

leanhdung1994 avatar May 23 '25 09:05 leanhdung1994

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 👍

lostintangent avatar May 24 '25 18:05 lostintangent

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.

leanhdung1994 avatar May 24 '25 18:05 leanhdung1994

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 avatar May 24 '25 18:05 lostintangent

@lostintangent I confirm that I installed git on my Windows 11:

Image

On the other hand, using git to upload ZIP files to https://gist.github.com (as here) works fine for me.

leanhdung1994 avatar May 24 '25 19:05 leanhdung1994

@lostintangent May I ask if you get any news?

leanhdung1994 avatar May 30 '25 20:05 leanhdung1994

This is now fixed and is included in the latest marketplace release. Thanks again for the bug report!

lostintangent avatar Jun 12 '25 16:06 lostintangent

Thank you very much for your support. I confirm that I can now upload zip files within GistPad.

leanhdung1994 avatar Jun 12 '25 17:06 leanhdung1994