mtlynch / picoshare

A minimalist, easy-to-host service for sharing images and other files
https://demo.pico.rocks
Other
2.33k stars 169 forks source link

Can upload some files, cannot upload others. #572

Closed rklol237 closed 5 months ago

rklol237 commented 6 months ago

I've just installed picoshare and it seems to not want to upload certain file types.

It uploads .zip, .jpg, .docx, etc. just fine; but I get a blank error whenever I try to upload .conf and .ipa files. In chrome, the .ipa file starts uploading but fails to proceed with any progress (in firefox, it just outright fails and just gives a blank error). I have tried with and without extensions and it gives the same result.

image

image

image

The following is my compose.yaml. I'm not sure if I'm doing something wrong or anything. Thanks. (I only have port 443 open on my firewall in case that the problem.)

version: "3.2" services: picoshare: image: mtlynch/picoshare environment:

rklol237 commented 6 months ago

Some more images from firefox and dockge: (only the .conf file seems to produce an error on firefox and docker, uploading the ipa file doesn't even produce any error in both)

333876100-786cf497-ed1e-4f90-87a6-ce3e92e54a79 333876103-d7fed252-f06c-497d-b2d7-eb49cae423e3 333876107-c4f5ebf6-8d55-46b5-853c-e3ba15639337

333875544-bef1ae7a-6f46-4e71-a0a7-1cbd64efe7f9

mtlynch commented 5 months ago

Thanks for reporting this!

Can you share examples of the files that fail?

I tried uploading a .conf file, and it worked fine, so I'm wondering if it's something specific to your file:

image

rklol237 commented 5 months ago

I just found that the .conf file was empty, and notepad++ saved my edits only to cache, which is probably why it didn't upload.

Is there a hard limit of 100MB in picoshare? Here is the ipa file that I wanted to upload to create a direct link for appdb sideloading. https://www.dropbox.com/scl/fo/2lcbnr27nqxtsvsd8pc3y/AOlaGYGEbgZ5AHyI8hpf62M?rlkey=cgmlf0k32tmzvsgkzi4pzcn20&st=l8ifkkg8&dl=0

I just tried uploading it to the demo website and it failed after some progress too.

image

rklol237 commented 5 months ago

https://github.com/mtlynch/picoshare/assets/70005399/b5c60578-f881-47e5-9d22-c72446c95067

mtlynch commented 5 months ago

Thanks for sharing the yt.ipa file. I was able to upload that successfully on my dev server.

Do you see any errors in the server logs when the upload fails? You shared server logs previously that showed the file empty error, but do you have logs for when the yt.ipa fails?

The empty error was fixed in #556, but I haven't cut a release that includes that fix yet.

rklol237 commented 5 months ago

From memory, I don't think the server spat out any error, it only displayed that the web page was accessed, I'll try again later today and get some actual pictures.

rklol237 commented 5 months ago

I started picoshare on a local server and it seems to be working perfectly: Screenshot 2024-05-29 164701

However, on my Hetzner VPS, I get the blank error or a upload stall on Windows, iOS and MacOS. I did manage to get an actual error message on my Linux machine: Screenshot from 2024-05-29 16-31-51

During all this, the docker terminal (on the VPS) didn't spit out any error message: Screenshot 2024-05-29 162444

Is there any log file I can access?

rklol237 commented 5 months ago

When I also try to access my local picoshare through Cloudflare tunnels, it also errors out similarly to the one on my VPS.

But, when I access the local picoshare directly (both http and https) via an internal DNS server it works perfectly.

rklol237 commented 5 months ago

Nevermind, I just forgot that Cloudflare has a upload limit of 100MB on the free tier. I have changed my nameservers and now it works perfectly. Thanks for the time and support anyways.

mtlynch commented 5 months ago

Okay, thanks for letting me know!

gabrySerra commented 3 months ago

Nevermind, I just forgot that Cloudflare has a upload limit of 100MB on the free tier. I have changed my nameservers and now it works perfectly. Thanks for the time and support anyways.

Which nameserver are you using now? I have the same problem with Cloudflare free plan

rklol237 commented 3 months ago

Nevermind, I just forgot that Cloudflare has a upload limit of 100MB on the free tier. I have changed my nameservers and now it works perfectly. Thanks for the time and support anyways.

Which nameserver are you using now?

I have the same problem with Cloudflare free plan

I currently have all my domains registered with Porkbun Domains. The default nameservers also apparently uses Cloudflare, just without all the proxy features, etc. So I have been hosting picoshare on another domain that's still using the default Porkbun nameservers.

They are decently priced too, in my opinion, second to only cloudflare itself, and supports a ton of TLD's. I can highly recommend them.