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

Fixed an issue where it was impossible to upload any icons in page settings. #3865

Merged
merged 10 commits into from
Jun 28, 2020

Conversation

valadas
Copy link
Contributor

@valadas valadas commented Jun 27, 2020

  • Resolves about 200 Stylecop warnings
  • Fixes an issue where filetypes where detected wrong from mimeTypes (for instance "application/svg+xml" was loogink for files named *.svg+xml" it now properly looks for *.svg files instead).
  • Made the validationCode required in the FileUpload common component since it does not work without that prop.
  • Fixes Cannot upload svg files for page icons #3863 in a similar fashion as in Fix logo/icon upload in site setting for #3722 #3769 but for the page icons.

@valadas valadas added this to the 9.6.2 milestone Jun 27, 2020
Copy link
Contributor

@david-poindexter david-poindexter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work! Just take a look at Grammarly! 😆 🚀

valadas and others added 3 commits June 27, 2020 20:20
…ntroller.cs

Co-authored-by: David Poindexter <dpoindexter@nvisionative.com>
@valadas
Copy link
Contributor Author

valadas commented Jun 28, 2020

Ok, that was strange but all corrections are now done @david-poindexter (gammar-cop) :P If you could re-approve/merge. Thanks for the review :)

Copy link
Contributor

@david-poindexter david-poindexter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent- thanks @valadas

@david-poindexter david-poindexter merged commit df2068c into dnnsoftware:release/9.6.2 Jun 28, 2020
valadas added a commit to valadas/Dnn.Platform that referenced this pull request Jun 28, 2020
Fixes dnnsoftware#3866 in the same way as in dnnsoftware#3865 and dnnsoftware#3769
The validation code is also needed when creating a new page, not only when editing an existing page.
david-poindexter pushed a commit that referenced this pull request Jun 28, 2020
Fixes #3866 in the same way as in #3865 and #3769
The validation code is also needed when creating a new page, not only when editing an existing page.
@cklenk
Copy link

cklenk commented Aug 4, 2020

Would this issue been related to anything with trying to upload a file to a page if you are using the file page type?

@valadas
Copy link
Contributor Author

valadas commented Aug 11, 2020

This fixed 2 issues, one with a missed update on a previous change regarding file uploads.
The second part of this fix was a wrong validation regarding file extension mappings to mime types.

I just saw the issue you mean, I guesses that part was missed, i guess the guy who did this PR (me) did not even know there was another uploader there 😁

The fix should be similar to this PR, if you can create a new issue for it and link to this PR, it would be an easy fix using this code as a reference in that other place.

As a workaround in the meantime you could upload the file you want using the site assets and then select the file instead of uploading it in the new page UI.

@cklenk
Copy link

cklenk commented Aug 11, 2020

@valadas okay I can do that! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants