-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Trying to import a configuration file does absolutely nothing #3402
Comments
I have no idea what zipline is, and we at Flameshot do not support anything but Imgur at this point. Also, what you imported is not Flameshot configuration. It is probably something that zipline folks have put together.
I have no idea what you mean by "import the config". Can you send us screenshot of screen recording of what you do and what is the procedure you are going through?
there is nothing to be toggled. We do not support anything but Imgur. Maybe in future we do, but not at this point of time.
Is this the config you are talking about? if it is, then this is a Bash script that have been carelessly put together. Here is how you can improve it:
Here is a better version (without changing the curl part apart from updating the file path): #!/usr/bin/env bash
# create a temp file to avoid name collision
OUR_FILE=$(mktemp)
# take the screenshot
flameshot gui --path "${OUR_FILE}"
# check if aborted
if file "${OUR_FILE}" | grep --fixed-strings "${OUR_FILE}: empty"
then
# solution taken from https://apple.stackexchange.com/a/115373/105984
display notification "Screenshot was aborted, so we don't upload!" with title "Zipline upload script"
exit 1
fi
# upload
curl -H "authorization: datvxxxxxxZUxxxxTY5OTEzxxxxxE5OQ" http://xxx.xxxxxxxxxxxx.xx:3000/api/upload \
-F file="${OUR_FILE}" \
-H "Content-Type: multipart/form-data" \
-H "Format: random" \
-H "Embed: true" \
| jq -r '.files[0]' \
| tr -d '\n' \
| pbcopy;
No it does not. Also the link you provided does not work. It would be easier and safer if you post pictures directly into Github (just copy picture and paste inside the text box of Github) |
Removed
The text was updated successfully, but these errors were encountered: