Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Clean only if error is nil #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

girokon
Copy link

@girokon girokon commented May 4, 2016

uploadedfile.NewUploadedFile always returns nil as first argument if error, therefore this code throws panic if we can't detect mime type. This PR fixes this behavior

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant