root-gg / plik

Plik is a temporary file upload system (Wetransfer like) in Go.
https://plik.root.gg
Other
1.42k stars 167 forks source link

not found on file upload: provide an example plikrc file #480

Closed oupala closed 1 year ago

oupala commented 1 year ago

I think the project should provide an example file for the .plikrc file.

For example, if you set the following configuration in the .plikrc file:

URL = "https://my.plik.server/"

and then you upload a file:

plik -t 6h IMG_20230126_090546.jpg
Unable to create upload : 404 Not Found : 404 page not found

The good configuration is without a trailing slash:

URL = "https://my.plik.server"

As the error is not easy to troubleshoot, it would be welcome that a commented .plikrc configuration is hosted inside the project.

This topic has already been discussed in #85.

camathieu commented 1 year ago

Trailing slash fixed in : https://github.com/root-gg/plik/commit/e8c737782215a25644a51cc73aefb1e7220d8faa

oupala commented 8 months ago

Great! Thank you!