You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently if i set the file types to .png;.jpg and i upload a .JPG it seems to fail because its not the correct type, just need to make this so it doesnt check the case sensitivity
The text was updated successfully, but these errors were encountered:
I just published an update and checked in the I hope fixes this.
I could rewrite this if need be, but I noticed the allowed extensions was already set to lowercase, the issue I fixed was if the uploaded file.extension is .JPG or .PNG, I did a ToLower(), because I had written a contains method originally, so I didn't have to loop through each allowed extension.
I also abort now if the file does not have an extension, and allowed extensions is true and has at least one extension set.
I don't build rockets for this very reason, but 'I think it will work' without testing.
I am going for a run now. If this doesn't fix it I will rewrite it with an equals comparison for each extension.
currently if i set the file types to .png;.jpg and i upload a .JPG it seems to fail because its not the correct type, just need to make this so it doesnt check the case sensitivity
The text was updated successfully, but these errors were encountered: