Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to upload #159

Open
lamyergeier opened this issue May 29, 2023 · 1 comment · May be fixed by timvisee/ffsend-api#81
Open

Unable to upload #159

lamyergeier opened this issue May 29, 2023 · 1 comment · May be fixed by timvisee/ffsend-api#81

Comments

@lamyergeier
Copy link

lamyergeier commented May 29, 2023

Installed using Appimage on Fedora

$ ffsend  -V
ffsend 0.2.76

$ command cat /tmp/Temp-2no.txt
a

$ ffsend --verbose u /tmp/Temp-2no.txt
error: failed to upload the specified file
caused by: failed to upload the file

For detailed errors try '--verbose'
For more information try '--help'
@YDX-2147483647
Copy link

YDX-2147483647 commented Aug 27, 2023

I meet the same error for a private Send host today. (The default host works for me.) The following is a report for my research.

In my case, upload_response.into_file (https://github.com/timvisee/ffsend-api/blob/82c3a899f6e9053568075407824ad4af7244fd7b/src/action/upload.rs#L410) raises an error, where upload_response.url is parsed (https://github.com/timvisee/ffsend-api/blob/82c3a899f6e9053568075407824ad4af7244fd7b/src/action/upload.rs#L462).
The default server responds with a full URL (https://…), but the private host responds with a URL without scheme. Therefore, Url::parse(&self.url) fails.


The private host's admin updates the config, and now it works. :-)

YDX-2147483647 added a commit to YDX-2147483647/ffsend-api that referenced this issue Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants