Skip to content

Conversation

@raspispass
Copy link

Pushing on the "Save Settings" button results in the error message "Error: Unsupported Media or Invalid Link!" shown on the web page so that settings are not saved. The problem is that the first if statement matches all sub if statements (the 'file' parameter is always sent):

if 'file' in request.files or (request.form and request.form.get("submit") == "Upload Image")

Therefore, the piink settings features are not working and resulting in this error message.

I fixed this by ending the first form for file upload and added a second opening form for the piink settings.

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 this pull request may close these issues.

1 participant